From 2a43a487c28b6c0a379640cc43050bfe44a62310 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 5 Dec 2019 17:27:20 +0100 Subject: [PATCH] Add icon content filter hook --- .../client/common-client-plugin.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/peertube-plugin-hello-world/client/common-client-plugin.js b/peertube-plugin-hello-world/client/common-client-plugin.js index ea916c1..5375717 100644 --- a/peertube-plugin-hello-world/client/common-client-plugin.js +++ b/peertube-plugin-hello-world/client/common-client-plugin.js @@ -46,6 +46,17 @@ function register ({ registerHook, peertubeHelpers }) { handler: result => addSymbolToVideoNameResult(result, ':D') }) + registerHook({ + target: 'filter:internal.common.svg-icons.get-content.result', + handler: (result, params) => { + if (params.name === 'syndication') { + return '' + } + + return result + } + }) + // Router hooks registerHook({