Invidious is an alternative front-end to YouTube
Fix disappearing end of the comments with emoji (#5587)
shiny-comic86c425b43f75
diff --git a/src/invidious/videos/description.cr b/src/invidious/videos/description.crindex 1371bebb..18b4122e 100644--- a/src/invidious/videos/description.cr+++ b/src/invidious/videos/description.cr@@ -21,8 +21,6 @@ private def copy_string(str : String::Builder, iter : Iterator, count : Int) : Istr << cp.chrend- # A codepoint from the SMP counts twice- copied += 1 if cp > 0xFFFFcopied += 1end@@ -44,10 +42,6 @@ def parse_description(desc, video_id : String) : String?endend- # Not everything is stored in UTF-8 on youtube's side. The SMP codepoints- # (0x10000 and above) are encoded as UTF-16 surrogate pairs, which are- # automatically decoded by the JSON parser. It means that we need to count- # copied byte in a special manner, preventing the use of regular string copy.iter = content.each_codepointindex = 0