Posts
Building the actual post feed
Finding posts of the users the logged-in user follows
The "Following" post feed is built using Fetching & Paginating most recent data from each of the previously picked "best" relay for each followed user, in parallel, with 1 filters JSON:
{"kinds":[1,6],"#l":[],"authors":["pubkey1","pubkey2"]}
note
The authors field is the previously determined list of followed users for each specific relay that is queried
warning
TODO: Determine how to "inject" articles into this feed. Is it something the client requests or is it a side effect the relay returns if some condition is met?
Displaying posts
All the returned events from each relay are merged together and ordered by created_at desc.
Each event is then displayed using the common approach.