the simplest way would be to fetch activities from the DB as normal and then if there's not enough activities fire off a GET /api/v1/accounts/:id/statuses request to their instance, iterate with Pleroma.Object.Fetcher.fetch_object_from_id(id) and redo the DB query
figuring out the max_id=pagination might be a bit complicated though, the id's being snowflake<time,rand> might make up for it though
@i@sjw@p@Moon javascript will only work for web clients. but there's also mobiles.
it should be possible to modify akkoma to make it load posts for foreign users on a fly. at least i think so. for me it's a little weird that it isn't implemented already. i don't know details of the implementation tho. (i will check pleroma/akkoma issues someday, maybe it was already proposed)
@l@sjw@p@Moon yeah activitypub isn't quite friendly when it comes to sharing posts
you could limit it to post made in the last week, or a set number for each user just to get a taste your instance will accrue tons of posts either way
but the idea of backfilling them on demand is a bit more complicated as there's no mastoapi for it, and pleroma-fe would not know of it you could probably hack with with a *monkey user javacript but that's outside of my knowledge
@i@sjw@p@Moon the thing with backfilling is complicated af. some users may have thousands of posts and if we take a lot of users db is gonna get crazy as i understand.
and i haven't come to any good solution to select which users to backfill. if we take all the users followed from the instance, then, again, it will be a crazy amount of posts. idk if its possible to backfill 'in real time'. like, when the user from the instance scrolls a user from another instance, it automatically gets posts from it. and you don't need to go to other instance's site.
there's also no tool made to backfill, but it should be possible you'd have to scrape the post url's of the instances/people you want and then fetch it via search, or script it more directly with a mix/iex task looping over that through Pleroma.Object.Fetcher.fetch_object_from_id(id)
hey instance admins how do i improve federation at my instance? is there some good articles about it?
i know i can sub to relays and follow a shitton accounts manually. i've already subbed to all relays i found and some instance-specific relays, but it sucks.
also, i dislike opening profiles and seeing them empty. is there some good ways to implement automatic backfilling?