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

Allow spam checkers to override the error message #16259

Open
gabrc52 opened this issue Sep 5, 2023 · 1 comment
Open

Allow spam checkers to override the error message #16259

gabrc52 opened this issue Sep 5, 2023 · 1 comment
Labels
A-Moderation Tools for moderating HSes: event redaction, media removal, purge admin API, reports from users, ... O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Minor Blocks non-critical functionality, workarounds exist. T-Enhancement New features, changes in functionality, improvements in performance, or user-facing enhancements.

Comments

@gabrc52
Copy link
Contributor

gabrc52 commented Sep 5, 2023

Description:

For instance in user_may_join_room

image

It is currently possible to override the status code / error code but not the error message. It would be useful for plugin devs to specify to users trying to join a room why they were denied for the room and what they can do in order to be granted access.

Clients like Element can then then display that error message.

@clokep
Copy link
Member

clokep commented Sep 6, 2023

It looks like #13044 almost allows this, but it only lets you return additional fields, the message is hard-coded:

"Not allowed to join this room",

@clokep clokep added A-Moderation Tools for moderating HSes: event redaction, media removal, purge admin API, reports from users, ... S-Minor Blocks non-critical functionality, workarounds exist. T-Enhancement New features, changes in functionality, improvements in performance, or user-facing enhancements. O-Uncommon Most users are unlikely to come across this or unexpected workflow labels Sep 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Moderation Tools for moderating HSes: event redaction, media removal, purge admin API, reports from users, ... O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Minor Blocks non-critical functionality, workarounds exist. T-Enhancement New features, changes in functionality, improvements in performance, or user-facing enhancements.
Projects
None yet
Development

No branches or pull requests

2 participants