Verified Commit 2a43a487 authored by Chocobozzz's avatar Chocobozzz
Browse files

Add icon content filter hook

parent 115c234a
......@@ -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 '<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
registerHook({
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment