Custom channel emoticons WIP (#130)

This commit is contained in:
John Livingston
2024-06-06 15:03:12 +02:00
parent 893708d93a
commit a777c7ac8d
12 changed files with 56 additions and 17 deletions

View File

@ -285,11 +285,8 @@ async function _connectionInfos (
params.forcetype ?? false
)
if (video?.channelId && await Emojis.singletonSafe()?.channelHasCustomEmojis(video.channelId)) {
customEmojisUrl = getBaseRouterRoute(options) +
'emojis/channel/' +
encodeURIComponent(video.channelId) +
'/definition'
if (video?.channelId) {
customEmojisUrl = await Emojis.singletonSafe()?.channelCustomEmojisUrl(video.channelId)
}
} catch (err) {
options.peertubeHelpers.logger.error(err)