element-hq / element-hq/synapse
Extend the SpamCheck API to report more than spam
Open
T-Enhancement
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 600
- Avg merge
- 5d 22h
- Merged PRs (30d)
- 51
Description
This issue has been migrated from [#9805](https://github.com/matrix-org/synapse/issues/9805).
---
In the future, we may end up using this API to do more than spam-checking. For instance, if a homeserver is child-friendly, they may wish to have some kind of image filter to detect violent imagery. As this is not spam, it would be nicer if the SpamCheck could return an information such as "against room policy", rather than a simple boolean spam/not spam. This would then let the clients adapt error messages to be more understandable.
Contributor guide
Assessment
This issue has not been assessed yet.