Mercurial > prosody-modules
view mod_spam_reporting/README.markdown @ 4249:64aa1d9d70ac
mod_rest: Catch and log errors in callback promise chain
From the code it looks like it should be possible to reply to an error
stanza, but it did not. Turns out I was saved by my local developer mode
module which throws errors if an attempt is made to create an errror
reply to an error stanza. However nothing collects this error from the
promise, so all I got was confusion.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 15 Nov 2020 16:25:49 +0100 |
parents | 476afcbfb3e9 |
children | 48c27b51f992 |
line wrap: on
line source
--- labels: - 'Stage-Beta' rockspec: dependencies: - mod_blocklist summary: 'XEP-0377: Spam Reporting' --- This module is a very basic implementation of [XEP-0377: Spam Reporting]. When someone reports spam or abuse, a line about this is logged and an event is fired so that other modules can act on the report.