Skip to content

flood.py: clean up every channel an image-spam burst touched - #14

Merged
cmaureir merged 1 commit into
mainfrom
fix-image-burst-cleanup
Aug 16, 2026
Merged

flood.py: clean up every channel an image-spam burst touched#14
cmaureir merged 1 commit into
mainfrom
fix-image-burst-cleanup

Conversation

@cmaureir

Copy link
Copy Markdown
Member

attachment_check's burst path only deleted the one message that happened to cross the 2-channel threshold, leaving earlier copies of the same spam images up in whichever channels they were posted to first - a compromised account spraying images across channels could beat detection (and the resulting mute) to several of them before getting caught.

image_authors now tracks the actual per-channel message (not just a timestamp), so once a burst is confirmed, every tracked channel gets its message deleted and the "cuenta comprometida" warning posted - not just the triggering one. Deletion tolerates a message already being gone (e.g. removed manually first) rather than crashing, and still warns that channel regardless. The mod-thread alert title now also reports how many channels were affected.

attachment_check's burst path only deleted the one message that
happened to cross the 2-channel threshold, leaving earlier copies of
the same spam images up in whichever channels they were posted to
first - a compromised account spraying images across channels could
beat detection (and the resulting mute) to several of them before
getting caught.

image_authors now tracks the actual per-channel message (not just a
timestamp), so once a burst is confirmed, every tracked channel gets
its message deleted and the "cuenta comprometida" warning posted -
not just the triggering one. Deletion tolerates a message already
being gone (e.g. removed manually first) rather than crashing, and
still warns that channel regardless. The mod-thread alert title now
also reports how many channels were affected.
@cmaureir
cmaureir merged commit dcb36b2 into main Aug 16, 2026
1 check passed
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