Improve Filter Rerun Logic#1937
Conversation
|
This would not alert us when an embed has been added to a message, which is why we should only really be skipping the filters if the message was pinned or unpinned. |
As the comment says, we don't want to be alerted of that. If we were, then we'd get double-pinged when a filter has a link in it (as is the case for the most recent mod-alert) |
|
We might miss self-bots though. |
|
This is only for message edits, can you actually edit an embed in? |
|
Yep, you can |
I believe we have other filters for that |
|
The reason we got two pings for that mod-alert is because of an oversight in the embed filter. So we should be running our filters on embed additions. I can PR a fix for the embed filter. #1938 relevant issue. |
@Qwerty-133 This has been addressed 👍 |
Qwerty-133
left a comment
There was a problem hiding this comment.
Everything looks good to me, thanks!
Closes #1934.
Will now only rerun filters in
on_message_editif the content or attachments of a message changed. This stops reruns for removal of embeds, change in pin status, etc.