Update to latest hooks/scopes

This commit is contained in:
Chocobozzz
2019-07-22 16:40:52 +02:00
parent 954b9c5fbc
commit 1fd372ecbc
5 changed files with 78 additions and 32 deletions

View File

@ -21,7 +21,7 @@ function register ({ registerHook, peertubeHelpers }) {
registerHook({
target: 'filter:api.video-watch.video-threads.list.result',
handler: result => {
result.comments.forEach(c => c.text += ' THREAD')
result.data.forEach(c => c.text += ' THREAD')
return result
}