fn reviewed_threads(
threads: Vec<ReviewThread>,
content: &DiffContent,
default_branch: Option<&str>,
whole: &HashMap<(String, ReviewSide), WholeFile>,
) -> Vec<ReviewedThreadWire>Expand description
Every thread with its landing against content - the same content the
record ships, so a page draws a thread where this answer says.
Only a thread numbered against this diff’s own base is placed. A
whole-diff anchor records the base it was written against, and a
view’s overlay opened against another target writes line numbers that
address unrelated code here (the placement refuses exactly that:
“line numbers against another base would anchor onto unrelated code”). A
thread from another base answers None - no landing - which the page
draws as itself rather than parking it on a guess.