diff --git a/locales/ar.json b/locales/ar.json index cc24da4a..0e89bd42 100644 --- a/locales/ar.json +++ b/locales/ar.json @@ -310,10 +310,11 @@ "%A %B %-d, %Y": "", "(edited)": "(تم تعديلة)", "YouTube comment permalink": "رابط التعليق على اليوتيوب", + "permalink": "", "`x` marked it with a ❤": "`x` اعجب بهذا", "Audio mode": "الوضع الصوتى", "Video mode": "وضع الفيديو", "Videos": "الفيديوهات", "Playlists": "قوائم التشغيل", "Current version: ": "الإصدار الحالى" -} +} \ No newline at end of file diff --git a/locales/de.json b/locales/de.json index 3adbaec2..8bd91473 100644 --- a/locales/de.json +++ b/locales/de.json @@ -310,10 +310,11 @@ "%A %B %-d, %Y": "%A %B %-d, %Y", "(edited)": "(editiert)", "YouTube comment permalink": "YouTube-Kommentar Permalink", + "permalink": "", "`x` marked it with a ❤": "`x` markierte es mit einem ❤", "Audio mode": "Audiomodus", "Video mode": "Videomodus", "Videos": "Videos", "Playlists": "Wiedergabelisten", "Current version: ": "Aktuelle Version: " -} +} \ No newline at end of file diff --git a/locales/el.json b/locales/el.json index 3ed49c67..0012f314 100644 --- a/locales/el.json +++ b/locales/el.json @@ -355,6 +355,7 @@ "%A %B %-d, %Y": "%A %B %-d, %Y", "(edited)": "(τροποποιημένο)", "YouTube comment permalink": "Σύνδεσμος YouTube σχολίου", + "permalink": "", "`x` marked it with a ❤": "Ο χρηστης `x` έβαλε ❤", "Audio mode": "Λειτουργία ήχου", "Video mode": "Λειτουργία βίντεο", diff --git a/locales/en-US.json b/locales/en-US.json index 9b786260..05f01819 100644 --- a/locales/en-US.json +++ b/locales/en-US.json @@ -355,6 +355,7 @@ "%A %B %-d, %Y": "%A %B %-d, %Y", "(edited)": "(edited)", "YouTube comment permalink": "YouTube comment permalink", + "permalink": "", "`x` marked it with a ❤": "`x` marked it with a ❤", "Audio mode": "Audio mode", "Video mode": "Video mode", diff --git a/locales/eo.json b/locales/eo.json index 3b15f3e3..59d7229c 100644 --- a/locales/eo.json +++ b/locales/eo.json @@ -310,10 +310,11 @@ "%A %B %-d, %Y": "%A %-d de %B %Y", "(edited)": "(redaktita)", "YouTube comment permalink": "Fiksligilo de la komento en YouTube", + "permalink": "", "`x` marked it with a ❤": "`x` markis ĝin per ❤", "Audio mode": "Aŭda reĝimo", "Video mode": "Videa reĝimo", "Videos": "Videoj", "Playlists": "Ludlistoj", "Current version: ": "Nuna versio: " -} +} \ No newline at end of file diff --git a/locales/es.json b/locales/es.json index 10fbf5ca..394a3c31 100644 --- a/locales/es.json +++ b/locales/es.json @@ -310,6 +310,7 @@ "%A %B %-d, %Y": "%A %B %-d, %Y", "(edited)": "(editado)", "YouTube comment permalink": "Enlace permanente de YouTube del comentario", + "permalink": "", "`x` marked it with a ❤": "`x` lo ha marcado con un ❤", "Audio mode": "Modo de audio", "Video mode": "Modo de vídeo", diff --git a/locales/eu.json b/locales/eu.json index 60fa6f6d..b9d2ebc3 100644 --- a/locales/eu.json +++ b/locales/eu.json @@ -309,6 +309,7 @@ "%A %B %-d, %Y": "", "(edited)": "", "YouTube comment permalink": "", + "permalink": "", "`x` marked it with a ❤": "", "Audio mode": "", "Video mode": "", diff --git a/locales/fr.json b/locales/fr.json index 72b12e92..7c4c408c 100644 --- a/locales/fr.json +++ b/locales/fr.json @@ -310,6 +310,7 @@ "%A %B %-d, %Y": "%A %-d %B %Y", "(edited)": "(modifié)", "YouTube comment permalink": "Lien YouTube permanent vers le commentaire", + "permalink": "", "`x` marked it with a ❤": "`x` l'a marqué d'un ❤", "Audio mode": "Mode Audio", "Video mode": "Mode Vidéo", diff --git a/locales/it.json b/locales/it.json index ce7800c3..1c07413d 100644 --- a/locales/it.json +++ b/locales/it.json @@ -309,6 +309,7 @@ "%A %B %-d, %Y": "%A %-d %B %Y", "(edited)": "(modificato)", "YouTube comment permalink": "Link permanente al commento di YouTube", + "permalink": "", "`x` marked it with a ❤": "`x` l'ha contrassegnato con un ❤", "Audio mode": "Modalità audio", "Video mode": "Modalità video", diff --git a/locales/nb_NO.json b/locales/nb_NO.json index e33004cd..316a38ab 100644 --- a/locales/nb_NO.json +++ b/locales/nb_NO.json @@ -310,6 +310,7 @@ "%A %B %-d, %Y": "", "(edited)": "(redigert)", "YouTube comment permalink": "Permanent YouTube-lenke til innholdet", + "permalink": "", "`x` marked it with a ❤": "`x` levnet et ❤", "Audio mode": "Lydmodus", "Video mode": "Video-modus", diff --git a/locales/nl.json b/locales/nl.json index d5a4907e..19413a4f 100644 --- a/locales/nl.json +++ b/locales/nl.json @@ -310,6 +310,7 @@ "%A %B %-d, %Y": "%A %B %-d, %Y", "(edited)": "(bewerkt)", "YouTube comment permalink": "Link naar YouTube-reactie", + "permalink": "", "`x` marked it with a ❤": "`x` heeft dit gemarkeerd met ❤", "Audio mode": "Audiomodus", "Video mode": "Videomodus", diff --git a/locales/pl.json b/locales/pl.json index 52875f03..4f95bdbe 100644 --- a/locales/pl.json +++ b/locales/pl.json @@ -310,6 +310,7 @@ "%A %B %-d, %Y": "", "(edited)": "(edytowany)", "YouTube comment permalink": "Odnośnik bezpośredni do komentarza na YouTube", + "permalink": "", "`x` marked it with a ❤": "`x` oznaczonych ❤", "Audio mode": "Tryb audio", "Video mode": "Tryb wideo", diff --git a/locales/ru.json b/locales/ru.json index 0bee2a39..a4f77c19 100644 --- a/locales/ru.json +++ b/locales/ru.json @@ -310,10 +310,11 @@ "%A %B %-d, %Y": "%-d %B %Y, %A", "(edited)": "(изменено)", "YouTube comment permalink": "Прямая ссылка на YouTube", + "permalink": "", "`x` marked it with a ❤": "❤ от автора канала \"`x`\"", "Audio mode": "Аудио режим", "Video mode": "Видео режим", "Videos": "Видео", "Playlists": "Плейлисты", "Current version: ": "Текущая версия: " -} +} \ No newline at end of file diff --git a/locales/uk.json b/locales/uk.json index c4632e9c..a260b694 100644 --- a/locales/uk.json +++ b/locales/uk.json @@ -310,10 +310,11 @@ "%A %B %-d, %Y": "%-d %B %Y, %A", "(edited)": "(змінено)", "YouTube comment permalink": "Пряме посилання на коментар в YouTube", + "permalink": "", "`x` marked it with a ❤": "❤ цьому від каналу `x`", "Audio mode": "Аудіорежим", "Video mode": "Відеорежим", "Videos": "Відео", "Playlists": "Плейлисти", "Current version: ": "Поточна версія: " -} +} \ No newline at end of file diff --git a/src/invidious/comments.cr b/src/invidious/comments.cr index a2e6d4e6..2b1b9cc7 100644 --- a/src/invidious/comments.cr +++ b/src/invidious/comments.cr @@ -22,6 +22,7 @@ class RedditComment replies: RedditThing | String, score: Int32, depth: Int32, + permalink: String, created_utc: { type: Time, converter: RedditComment::TimeConverter, @@ -363,8 +364,6 @@ def template_reddit_comments(root, locale) root.each do |child| if child.data.is_a?(RedditComment) child = child.data.as(RedditComment) - author = child.author - score = child.score body_html = HTML.unescape(child.body_html) replies_html = "" @@ -376,13 +375,14 @@ def template_reddit_comments(root, locale) content = <<-END_HTML

[ - ] - #{author} - #{translate(locale, "`x` points", number_with_separator(score))} - #{translate(locale, "`x` ago", recode_date(child.created_utc, locale))} -

-
- #{body_html} - #{replies_html} + #{child.author} + #{translate(locale, "`x` points", number_with_separator(child.score))} + #{translate(locale, "`x` ago", recode_date(child.created_utc, locale))} + #{translate(locale, "permalink")} +

+
+ #{body_html} + #{replies_html}
END_HTML