Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
fix misleading comment in check_events_for_spam (#12203)
Browse files Browse the repository at this point in the history
  • Loading branch information
H-Shay authored Mar 10, 2022
1 parent 72e7f1c commit ed9aea4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.d/12203.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix a misleading comment in the function `check_event_for_spam`.
4 changes: 2 additions & 2 deletions synapse/events/spamcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,8 @@ async def check_event_for_spam(
"""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, then
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
Expand Down

0 comments on commit ed9aea4

Please sign in to comment.