Mercurial > prosody-modules
changeset 6324:a41d5d511948
mod_report_affiliations: Set trust to 0 if unknown
Fixes a traceback preventing to join any room.
| author | Link Mauve <linkmauve@linkmauve.fr> |
|---|---|
| date | Tue, 09 Sep 2025 14:09:30 +0200 |
| parents | 6216d85162dc |
| children | ba2c344e1bdd |
| files | mod_report_affiliations/mod_report_affiliations.lua |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_report_affiliations/mod_report_affiliations.lua Sat Sep 06 20:57:57 2025 +0200 +++ b/mod_report_affiliations/mod_report_affiliations.lua Tue Sep 09 14:09:30 2025 +0200 @@ -91,7 +91,7 @@ return st.stanza("info", { affiliation = account_type; since = since and dt.datetime(since - (since%86400)) or nil; - trust = ("%d"):format(trust); + trust = ("%d"):format(trust or 0); xmlns = xmlns_aff; }); end
