Repository navigation
feat: accept a content flag only where it appears now - #30
Merged
Merged
Conversation
accept --only-here (Store.AcceptPinned) stores ID@Pin, where Pin hashes the places a content value appears and how many: old content nobody adds to stays quiet, and the flag comes back when the value turns up on a new page. The content scan leaves out revisions' and trashed posts' meta, as it already did their posts, so an edit doesn't move the pin (and counts stop including copies). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Accepting a content flag used to cover its value (an iframe host, a script) anywhere on the site, now and later. That's right for a tool in active use, but wrong for old content nobody adds to: a new page embedding the same host should flag again.
accept --only-here(Store.AcceptPinned): each content flag carries aPin, a hash of its places and count, and the decision is stored asID@Pin. The checker accepts onIDorID@Pin, so a new place changes the pin and brings the flag back. A pinned accept replaces an unpinned one of the same value, and anything but a content flag is refused.go test ./...,go vetandgofmtpass. New:TestAcceptPinned, plus a pinned case inTestContent(holds in place, comes back in a new place). README and CLI usage updated. foreman needs the matching flag ondata-audit acceptafter this merges.🤖 Generated with Claude Code