Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New hooks to prevent user and channel modifications #5693

Open
JohnXLivingston opened this issue Mar 15, 2023 · 0 comments
Open

New hooks to prevent user and channel modifications #5693

JohnXLivingston opened this issue Mar 15, 2023 · 0 comments
Labels
Component: PeerTube Plugin 📦 Features that can be developed in a plugin, but require PeerTube plugin API development Type: Feature Request ✨

Comments

@JohnXLivingston
Copy link
Contributor

JohnXLivingston commented Mar 15, 2023

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 are action:api.user.updated and action: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
  • maybe also for comments?
@Chocobozzz Chocobozzz added Type: Feature Request ✨ Component: PeerTube Plugin 📦 Features that can be developed in a plugin, but require PeerTube plugin API development labels Mar 15, 2023
@Chocobozzz Chocobozzz changed the title Feature Request: new hooks to prevent user and channel modifications Mar 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: PeerTube Plugin 📦 Features that can be developed in a plugin, but require PeerTube plugin API development Type: Feature Request ✨
2 participants