Code Puppet on Nostr: If you have posts from multiple relays, you can’t rely on “oldest post”. Your ...
If you have posts from multiple relays, you can’t rely on “oldest post”. Your “since” value to load from is actually the NEWEST OF the “oldest posts” that are tracked per relay. If you don’t take this into account, a relay that doesn’t have many posts will cause big gaps in your feed.
Published at
2023-01-17 18:58:47Event JSON
{
"id": "df3b1daf3d9e235580980267097acede3b2f98d676e2bec7542e94724af2bc09",
"pubkey": "0db80fa91e2ea00bd9b64364d289b4dfaebe19587043f12206ada163ccfad7bd",
"created_at": 1673981927,
"kind": 1,
"tags": [
[
"e",
"0c1cf6c62d7a49063d6c95b5010994e6f41f91d21b7cbc439f0a9549c99b8b14",
"wss://nostr.orangepill.dev",
"root"
]
],
"content": "If you have posts from multiple relays, you can’t rely on “oldest post”. Your “since” value to load from is actually the NEWEST OF the “oldest posts” that are tracked per relay. If you don’t take this into account, a relay that doesn’t have many posts will cause big gaps in your feed. ",
"sig": "d31a7f18c2d2135ac7d9c7d2e0865b68d9a5274dcbb578eb62c64b406b65243b29d08052e36a2711db1cf6a2eb27e715aaf3a80f3ce38eb74d048a04c2e113c0"
}