Skip to content

Spam moderation false positive: redacts maintainer links quoted by first-time contributors #268

Description

@pliablepixels

Seen on #247 (comment 5044300733): a first-time contributor quoted a maintainer comment containing a drive.google.com test-build link. The moderation workflow redacted the quoted link and pinged both the contributor and the maintainer.

Two problems:

  1. A URL already posted by a trusted user (maintainer) in the same thread is not spam; quoting it should not trigger redaction.
  2. The bot's comment @-mentions the contributor, generating an unwanted notification. Only the maintainer should be pinged.

Fix: before redacting, collect URLs posted in the thread by trusted authors (issue body + comments with a trusted author_association) and drop any flagged hit matching one of them. Render the contributor's handle in backticks so it does not notify.

Refs #222 (original workflow).

This issue was filed by Claude assisting @pliablepixels.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions