-
-
Notifications
You must be signed in to change notification settings - Fork 83
Add warn auto-ban for repeated admin /warn commands #398
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
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
f137fac
add plan: warn-auto-ban
umputun ea48593
feat: add Warnings storage layer for warn auto-ban
umputun a8d2739
feat: add Warnings consumer interface and moq mock
umputun 3203574
feat: wire warn auto-ban CLI flags and settings
umputun 6c1783e
feat: wire warnings storage through TelegramListener to admin
umputun b9ebf00
feat: implement warn auto-ban in DirectWarnReport
umputun 8964290
feat: parse warn auto-ban form fields in webapi config handler
umputun 8ae4ef5
feat: add warn auto-ban inputs to settings UI with e2e coverage
umputun 923d98d
feat: verify warn auto-ban acceptance criteria
umputun 3981b0d
docs: document warn auto-ban feature
umputun 4fdd756
fix: address code smell findings in warn auto-ban
umputun 07f0eb7
fix: address code review findings
umputun 4b44da8
fix: address codex review findings
umputun d746808
refactor(events): relocate single-consumer interfaces to consumer files
umputun d6311ab
test(e2e): wait for htmx settle before clicking delete
umputun 20a13df
fix: harden warn auto-ban against negative thresholds
umputun File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
Oops, something went wrong.
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.
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.
DirectWarnReport builds warnTargetName from origMsg.From.UserName without checking origMsg.From for nil. For channel messages, Telegram may omit From and only set SenderChat, which would panic before the SenderChat branch runs. Please guard accesses to ReplyToMessage.From / origMsg.From and use SenderChat (or a safe fallback) when From is nil.