-
-
Notifications
You must be signed in to change notification settings - Fork 449
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add channel for messages caught by AutoMod #4986
Conversation
This feels like something in the direction of #4931 - i.e. it could in the future contain more types of messages, for example some follower, prediction, poll, or similar feed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code overall looks good to me, two things
- In the AutoMod logs, the message from automod doesn't have a channel attached to it
# Start logging at 2023-12-02 12:43:36 CET
# [12:43:36] automod: AutoMod: Held a message for reason: sexwords level 4. Allow will post it in chat. Allow Deny
#testaccount_420 [12:43:36] pajlada: pajlada: ...
- Global search shows messages from the automod channel - as you already outlined in the description
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
Confirmed the automod logs work as expected now, just gotta fix the global search. |
Fixed global search for automod, but couldn't figure out how messages from mentionsChannel don't appear in global search without such a conditional... edit: figured it out
|
Implements a split that shows automod caught messages across all channels the user moderates. Useful for folks that moderate multiple channels at once.