openvibers/openvibe.community Commits

Comment threads on a Live channel link to its page, /@<username> (they linked to /<username>, which is not a page on Live); threads on a Live stream link to /stream/<id>

OP OpenVibers committed 23 Sept 2026 · 63b90a838d · 1 file, +2 −1


Changes

ddiff --git a/server/render/comments.js b/server/render/comments.js
iindex 0fc7eb8..52cb15f 100644
---- a/server/render/comments.js
++++ b/server/render/comments.js
@@@ -23,7 +23,8 @@ function sourceUrl(ref) {
const id = encodeURIComponent(ref.id);
if (ref.service === 'live' && ref.type === 'vod') return `${config.liveUrl}/vod/${id}`;
if (ref.service === 'live' && ref.type === 'clip') return `${config.liveUrl}/clip/${id}`;
-- if (ref.service === 'live' && ref.type === 'channel') return `${config.liveUrl}/${id}`;
++ if (ref.service === 'live' && ref.type === 'channel') return `${config.liveUrl}/@${id}`; // Live's channel page is /@<username>
++ if (ref.service === 'live' && ref.type === 'stream') return `${config.liveUrl}/stream/${id}`;
if (ref.service === 'community' && ref.type === 'paste') return `/p/${id}`;
return null;
}