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

Fix a misleading comment in check_events_for_spam #12203

Merged
merged 1 commit into from
Mar 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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