mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
fix misleading comment in check_events_for_spam
(#12203)
This commit is contained in:
parent
72e7f1c420
commit
ed9aea42fa
1
changelog.d/12203.misc
Normal file
1
changelog.d/12203.misc
Normal file
@ -0,0 +1 @@
|
|||||||
|
Fix a misleading comment in the function `check_event_for_spam`.
|
@ -245,8 +245,8 @@ class SpamChecker:
|
|||||||
"""Checks if a given event is considered "spammy" by this server.
|
"""Checks if a given event is considered "spammy" by this server.
|
||||||
|
|
||||||
If the server considers an event spammy, then it will be rejected if
|
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
|
sent by a local user. If it is sent by a user on another server, the
|
||||||
users receive a blank event.
|
event is soft-failed.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
event: the event to be checked
|
event: the event to be checked
|
||||||
|
Loading…
Reference in New Issue
Block a user