Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Timo Ley
synapse
Commits
ed9aea42
Unverified
Commit
ed9aea42
authored
3 years ago
by
Shay
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fix misleading comment in `check_events_for_spam` (#12203)
parent
72e7f1c4
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
changelog.d/12203.misc
+1
-0
1 addition, 0 deletions
changelog.d/12203.misc
synapse/events/spamcheck.py
+2
-2
2 additions, 2 deletions
synapse/events/spamcheck.py
with
3 additions
and
2 deletions
changelog.d/12203.misc
0 → 100644
+
1
−
0
View file @
ed9aea42
Fix a misleading comment in the function `check_event_for_spam`.
This diff is collapsed.
Click to expand it.
synapse/events/spamcheck.py
+
2
−
2
View file @
ed9aea42
...
...
@@ -245,8 +245,8 @@ class SpamChecker:
"""
Checks if a given event is considered
"
spammy
"
by this server.
If the server considers an event spammy, then it will be rejected if
sent by a local user. If it is sent by a user on another server, the
n
users receive a blank event
.
sent by a local user. If it is sent by a user on another server, the
event is soft-failed
.
Args:
event: the event to be checked
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment