Context retrieval bugged

Hi Angus,

Noticing this week that when NodeBB asserts a piece of Discourse content, it creates a new topic.

Digging into it, NodeBB is attempting to resolve context, and this succeeds. The resulting context has no items, so NodeBB assumes the retrieves note is the only item in the collection.

That part is an incorrect assumption (I should just break out of context resolution if no items are found), but the context should contain at least that one item.

Hopefully the outstanding PR that addresses this will be merged soon, when work on the Discourse-side resumes :crossed_fingers:

1 Like