New hooks to prevent user and channel modifications #5693
Labels
Component: PeerTube Plugin 📦
Features that can be developed in a plugin, but require PeerTube plugin API development
Type: Feature Request ✨
Describe the problem to be solved
This is related to this request: JohnXLivingston/peertube-plugin-filterregistrations#2
The plugin filterregistrations allow admins to forbid some pattern in usernames, emails, ... to prevent spam.
This plugin uses the hook
api.user.signup.allowed.result
to prevent account creation when these patterns are encountered.Nowadays, many spam accounts are created, with spam links in there account or channel descriptions.
Peertube does not provide hooks like
api.user.signup.allowed.result
than can be called to reject some account/channel descriptions. The only existing backend hooks areaction:api.user.updated
andaction:api.video-channel.updated
which are called after the update, and can't be used to prevent it.Describe the solution you would like
I'd like new hooks, similar to
api.user.signup.allowed.result
:filter:api.user.update.allowed.result
filter:api.video-channel.update.allowed.result
filter:api.video.update.allowed.result
The text was updated successfully, but these errors were encountered: