ActivityPub-federated video streaming platform using P2P directly in your web browser
Action hook: thread replies loaded (#2550)
BitTubecf387740f2a5
diff --git a/client/src/app/videos/+video-watch/comment/video-comments.component.ts b/client/src/app/videos/+video-watch/comment/video-comments.component.tsindex ba59e0a1d5..f2bb5c4648 100644--- a/client/src/app/videos/+video-watch/comment/video-comments.component.ts+++ b/client/src/app/videos/+video-watch/comment/video-comments.component.ts@@ -96,6 +96,7 @@ export class VideoCommentsComponent implements OnInit, OnChanges, OnDestroy {res => {this.threadComments[commentId] = resthis.threadLoading[commentId] = false+ this.hooks.runAction('action:video-watch.video-thread-replies.loaded', 'video-watch', { data: res })if (highlightThread) {this.highlightedThread = new VideoComment(res.comment)diff --git a/shared/models/plugins/client-hook.model.ts b/shared/models/plugins/client-hook.model.tsindex fc36e5771c..62f6070d79 100644--- a/shared/models/plugins/client-hook.model.ts+++ b/shared/models/plugins/client-hook.model.ts@@ -67,6 +67,8 @@ export const clientActionHookObject = {'action:video-watch.player.loaded': true,// Fired when the video watch page comments(threads) are loaded and load more comments on scroll'action:video-watch.video-threads.loaded': true,+ // Fired when a user click on 'View x replies' and they're loaded+ 'action:video-watch.video-thread-replies.loaded': true,// Fired when the search page is being initialized'action:search.init': true,