Skip to content

Stop Thunder from serving retweets of tombstoned originals - #150

Open
Pitchfork-and-Torch wants to merge 1 commit into
xai-org:mainfrom
Pitchfork-and-Torch:cursor/thunder-retweet-tombstone-8e2c
Open

Stop Thunder from serving retweets of tombstoned originals#150
Pitchfork-and-Torch wants to merge 1 commit into
xai-org:mainfrom
Pitchfork-and-Torch:cursor/thunder-retweet-tombstone-8e2c

Conversation

@Pitchfork-and-Torch

Copy link
Copy Markdown

mark_as_deleted tombstones the original and drops its CompactPost; retweets of that id stay on the retweeter deque.
get_posts_from_map never checked deleted_posts for source_post_id, so a deleted in-network post kept serving as a retweet card.
Skip retweets whose source id is tombstoned. Live-source retweets are unchanged. Not #57 (sibling eviction), #59 (deque strip), or #138 (QuotedTweetDeleteEvent).
Test: delete original 100, retweet 200 is gone, retweet 201 of live 101 still serves. Standalone predicate 4/4.
thunder/ has no Cargo.toml in this snapshot.

mark_as_deleted removes the original CompactPost and tombstones its id.
Retweets of that id stay on the retweeter deque, so Following / For You
in-network kept serving a deleted post as a retweet card.

Co-authored-by: Jon Bailey <Pitchfork-and-Torch@users.noreply.github.com>
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.

2 participants