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

Plugin support for adding action links to users and comments #6264

Open
kontrollanten opened this issue Mar 12, 2024 · 1 comment
Open

Plugin support for adding action links to users and comments #6264

kontrollanten opened this issue Mar 12, 2024 · 1 comment
Labels
Component: PeerTube Plugin 📦 Features that can be developed in a plugin, but require PeerTube plugin API development Type: Feature Request ✨

Comments

@kontrollanten
Copy link
Contributor

Describe the problem to be solved

Spam protection plugins, like the akismet plugin, should have the possibility to mark existing users and comments as spam.

Describe the solution you would like

Possibility to add actions in the following places:

  • user list
  • comments list
  • abuse list
  • video comments
  • account page
@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 12, 2024
@kontrollanten
Copy link
Contributor Author

I've started looking into this. It's pretty straight forward adding filters to be able to alter the dropdown action menus, but I got stuck onto two issues:

  • When running the handler we'd like to show some kind of loading indicator.
  • When the handler is done the view should be reloaded to see the result of the actions (when marking a comment as spam in the comments list, the comments list should be updated).

The first issue may not be a big deal, even though it will impair the UX. But the second issue must be handled in some way to solve this.

What about adding a trigger function to the plugin client API? The API could look like:

triggerAction('video-watch.comment-list.reload');
triggerAction('loading-indicator.load-start');
triggerAction('loading-indicator.load-end');

The triggerAction API may be useful in other cases as well. Any thoughts, @Chocobozzz ?

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 ✨
Projects
None yet
Development

No branches or pull requests

2 participants