Skip to main content

threads_from_rest

Function threads_from_rest 

Source
pub fn threads_from_rest(comments: &[Value]) -> Vec<RawThread>
Expand description

Rebuild threads from the REST inline comments, for a host where the GraphQL query will not run.

A root comment has no in_reply_to_id; every reply carries the root’s id. What cannot be rebuilt is whether the thread is resolved, because REST has never served it, so every thread here is treated as unresolved and idempotence falls entirely to the local watermark. Nothing is resolved on a run that came through here either: the mutation needs a node id this endpoint does not return.