Add icon content filter hook

This commit is contained in:
Chocobozzz 2019-12-05 17:27:20 +01:00
parent 115c234a6d
commit 2a43a487c2
No known key found for this signature in database
GPG Key ID: 583A612D890159BE

View File

@ -46,6 +46,17 @@ function register ({ registerHook, peertubeHelpers }) {
handler: result => addSymbolToVideoNameResult(result, ':D') handler: result => addSymbolToVideoNameResult(result, ':D')
}) })
registerHook({
target: 'filter:internal.common.svg-icons.get-content.result',
handler: (result, params) => {
if (params.name === 'syndication') {
return '<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="50"/></svg>'
}
return result
}
})
// Router hooks // Router hooks
registerHook({ registerHook({