bluesky-social / feed-generator

ATProto Feed Generator Starter Kit
MIT License
919 stars 329 forks source link

Fetching all post history from a specific user #58

Open gomichela opened 1 year ago

gomichela commented 1 year ago

Trying out the repo locally, I can see all the contents from the "firehose" as they happen live, this is useful for getting new posts as they come, but is there a way to get all posts from a specific did from when the account was created?

shawnphoffman commented 9 months ago

I'm doing something similar with my feed. Since you don't want to fetch all of the posts every time someone loads the feed, I found it easiest to save new posts from that user into an Upstash redis instance when they appear in the firehose. To handle past posts, I have a script that fetches the old posts and adds them to redis one-time. I hope that's at least a little helpful.