What is Nostr?
julian /
npub16lu…09mm
2025-02-18 16:59:19

julian on Nostr: Just wrapped up a call with @pfefferle@mastodon.social and ...

Just wrapped up a call with @pfefferle@mastodon.social and @jesseplusplus@mastodon.social to review their implementations of FEP 7888, specifically in relation to conversational backfill.
<img class="/>"/>"/> individual objects serve a context property

<img class="/>"/>"/> that context property is a URL that resolves
One of the concerns raised was related to the OrderedCollection of items served by the context. Specifically, if the items presented in the collection were not in chronological order, NodeBB failed at importing some of the items as the inReplyTo referenced an object that did not exist.
The solution to this was to ensure that the collection items were in chronological order from oldest to newest. Once fixed:
<img class="/>"/>"/> the context resolved to an OrderedCollection containing objects

<img class="/>"/>"/> NodeBB was able to pull in the entire conversation
NodeBB used to guard against this by ordering all received items by chronological order, but I realized that while this worked 99%+ of the time, there are some fun (ahem...) individuals who send objects with timestamps way in the future.
Personally I think removing the sorting just to fix one edge case was premature. At the same time, I think specifying that the OrderedCollection be sorted in chronological order should be a requirement.
cc @trwnh@mastodon.social
Author Public Key
npub16lufy7a3rplgl0xsea9ga22d968ynrk0egajcnec8y4x4nzed8tsfz09mm