mirror of
https://github.com/iv-org/invidious.git
synced 2026-09-06 00:52:45 -05:00
YouTube's new commentEntityPayload format carries emojis as attachmentRuns (startIndex/length into the plain text plus an image reference), which parse_description() ignored so far - making every custom channel emoji disappear from comments and video descriptions. Merge attachmentRuns with the existing commandRuns handling (they share the same UTF-16 coordinate space): - Images hosted on /ggpht-proxiable domains (yt3.ggpht.com custom channel emojis) are rendered as <img class="channel-emoji"> tags, reusing the proxy and CSS class from the legacy comment renderer. - Attachments pointing at www.youtube.com (standard unicode emojis rendered as images by YouTube) are skipped, keeping their original characters - they render fine natively without contacting YouTube's servers. Fixes #5888