summary refs log tree commit diff
path: root/develop/print.html
diff options
context:
space:
mode:
authorreivilibre <reivilibre@users.noreply.github.com>2021-11-01 15:46:26 +0000
committerreivilibre <reivilibre@users.noreply.github.com>2021-11-01 15:46:26 +0000
commit2e585f0be74ef893181ee65b244f1e3dd60d6be0 (patch)
tree96c88dbaa2c7ca15a4754842fb7b493d22a4fde5 /develop/print.html
parentdeploy: 66bdca3e317d1fa764cf52547aee7409acc59676 (diff)
downloadsynapse-2e585f0be74ef893181ee65b244f1e3dd60d6be0.tar.xz
deploy: 69ab3dddbc1595ee64c428df7a7f3c861a84b5b0
Diffstat (limited to 'develop/print.html')
-rw-r--r--develop/print.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/develop/print.html b/develop/print.html

index e8325a4b80..b453892ce0 100644 --- a/develop/print.html +++ b/develop/print.html
@@ -8052,6 +8052,12 @@ servers are using the same module, with the same configuration.</p> event with new data by returning the new event's data as a dictionary. In order to do that, it is recommended the module calls <code>event.get_dict()</code> to get the current event as a dictionary, and modify the returned dictionary accordingly.</p> +<p>If <code>check_event_allowed</code> raises an exception, the module is assumed to have failed. +The event will not be accepted but is not treated as explicitly rejected, either. +An HTTP request causing the module check will likely result in a 500 Internal +Server Error.</p> +<p>When the boolean returned by the module is <code>False</code>, the event is rejected. +(Module developers should not use exceptions for rejection.)</p> <p>Note that replacing the event only works for events sent by local users, not for events received over federation.</p> <p>If multiple modules implement this callback, they will be considered in order. If a