Merge pull request #3099 from SamantazFox/fix-3096

Fix for #3096
pull/3100/head
Samantaz Fox 2022-05-19 23:05:17 +02:00 zatwierdzone przez GitHub
commit b1128c17f1
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -567,6 +567,10 @@ end
def content_to_comment_html(content, video_id : String? = "")
html_array = content.map do |run|
# Sometimes, there is an empty element.
# See: https://github.com/iv-org/invidious/issues/3096
next if run.as_h.empty?
text = HTML.escape(run["text"].as_s)
if run["navigationEndpoint"]?