Repository navigation
feat(#2051): sort Bluesky/Mastodon replies by interest - #2052
Merged
Merged
Conversation
Interest is likes + 2×reposts + 2×quotes + 3×replies: a reply that started its own conversation says most, sharing takes more than a like. Equal scores fall back to newest first, so an unengaged thread reads as before; answers inside a thread stay oldest first so they still read as a conversation.
…nts the reply carries The weighting is a tuned verdict, so it lives in the root service; the model keeps the plain counts and the builders only parse them.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #2051
The direct replies under a Bluesky or Mastodon post are now ranked by engagement instead of newest first:
likes + 2×reposts + 2×quotes + 3×repliesDesign
ReplyNodecarries the reply'sSocialCountsModel, so the builders only parse.ReplyThreadOrder(root service) applies the weights. They are a tuning decision, not part of the counts model (architecture §10).ThreadWalkwalks the replies in the order it is given.Boy-scout: dropped
ReplyNode::withReplies, which only a test called (its own commit).Verification: both suite legs (SQLite, MySQL) pass, plus cs, stan, tramp and PHPMD on the touched files.
infection:diffkills 33/33 mutants. PhpStorm reports weak warnings only.