Skip to content

Drop quotes whose quoted author handle matches a muted keyword - #140

Closed
Pitchfork-and-Torch wants to merge 1 commit into
xai-org:mainfrom
Pitchfork-and-Torch:cursor/following-latest-mute-residual-5019
Closed

Pitchfork-and-Torch wants to merge 1 commit into
xai-org:mainfrom
Pitchfork-and-Torch:cursor/following-latest-mute-residual-5019

Conversation

@Pitchfork-and-Torch

Copy link
Copy Markdown

Bug

FollowingViewerMutedKeywordFilter already drops when quoted tweet text matches a muted keyword. AuthorSocialgraphFilter already drops when the viewer mutes the quoted author by user id (PR 23). Mute-keyword matching never looked at the quoted author handle.

Gizmoduck already filled author_screen_name and retweeted_screen_name. get_screen_names() omitted quoted_user_id. Latest Following never fetched the quoted handle at all.

A followee quoting @spamAccount with comment "look" and quoted text "hello" still served when the viewer muted the keyword spamaccount. Mention-in-text already drops (test_mention_keyword). Quoted text already drops on Following. This is the leftover author-of-quoted edge.

This is not PR 96 (quote/reply/retweet TEXT). Not PR 23 (mute quoted author by id). Not PR 100 (blocked-by retweeted author). Not PR 108 (Following author blocked-by).

Fix

Hydrate quoted_screen_name from Gizmoduck (Phoenix already had the client; Latest Following gets a quoted-user-only hydrator). Match that handle in FollowingViewerMutedKeywordFilter and ViewerMutedKeywordFilter.

Proof

  • Entry: Night Owl / QuoteHydrator quoted_user_id; Gizmoduck profile.screen_name
  • Sink: FollowingViewerMutedKeywordFilter / ViewerMutedKeywordFilter
  • Break: mute-keyword matched tweet_text and quoted_tweet_text; quoted author handle was never hydrated or matched
  • Viewer effect: quote of @mutedkeyword still serves on Latest Following and For You
  • Twin: test_mention_keyword drops @handle in tweet_text; Following already drops matching quoted_tweet_text

Tests

  • drops_quote_when_quoted_author_handle_matches_muted_keyword (Following and For You)
  • keeps_quote_when_quoted_author_handle_does_not_match
  • keeps_quote_when_only_quoted_text_would_match_keyword (For You does not clone PR 96 text matching)
  • still_drops_when_quoted_text_matches (Following twin unchanged)
  • unit tests added; cargo test cannot run in the public dump

Pitchfork-and-Torch added a commit to Pitchfork-and-Torch/x-algorithm that referenced this pull request Sep 8, 2026
ViewerMutedKeywordFilter only tokenized tweet_text. Gizmoduck already
filled retweeted_screen_name on For You, and Night Owl already sets
retweeted_user_id on Latest Following, but neither mute-keyword filter
matched the original author handle.

A followee retweeting @spamAccount ("hello") still served when the
viewer muted the keyword spamaccount. Mention-in-text already drops;
mute-by-id is already AuthorSocialgraphFilter (#9). This is the leftover
author-of-retweeted edge, twin of quoted-author handle (xai-org#140).
Following already matched quoted tweet text. Mute-by-id of the quoted
author is a different sink. A muted keyword that is the quoted author's
screen name still served the quote card. Hydrate that handle and match
it on Latest Following and For You.
@Pitchfork-and-Torch
Pitchfork-and-Torch force-pushed the cursor/following-latest-mute-residual-5019 branch from 6dcbd20 to 902a06f Compare September 8, 2026 23:11
@Pitchfork-and-Torch

Copy link
Copy Markdown
Author

Parking this intern-stack PR per operator GitHub cleanup (2026-09-08). Hunt notes remain local. Not a reject of the class.

@Pitchfork-and-Torch
Pitchfork-and-Torch deleted the cursor/following-latest-mute-residual-5019 branch September 18, 2026 00:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant