}
})
+ // ---------------------------------------------------------------------------
+
registerHook({
target: 'filter:api.video-thread.create.accept.result',
handler: ({ accepted }, { commentBody }) => checkCommentBadWord(accepted, commentBody)
handler: ({ accepted }, { commentBody }) => checkCommentBadWord(accepted, commentBody)
})
+ registerHook({
+ target: 'filter:activity-pub.remote-video-comment.create.accept.result',
+ handler: ({ accepted }, { comment }) => checkCommentBadWord(accepted, comment)
+ })
+
+ // ---------------------------------------------------------------------------
+
registerHook({
target: 'filter:api.video-threads.list.params',
handler: obj => addToCount(obj)
})
registerHook({
- target: 'filter:transcoding.auto.lower-resolutions-to-transcode.result',
+ target: 'filter:transcoding.auto.resolutions-to-transcode.result',
handler: (object, context) => {
if (context.video.name.includes('transcode-filter')) {
object = [ 100 ]