From 660e6c46e60bf2a190ccf79ca7e78220ae05042e Mon Sep 17 00:00:00 2001 From: nipos Date: Sat, 7 Sep 2019 15:35:12 +0200 Subject: [PATCH] Critical bugfix: Some statuses cause Javascript errors and prevent the timeline from further rendering --- assets/js/halcyon/halcyonFunctions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/halcyon/halcyonFunctions.js b/assets/js/halcyon/halcyonFunctions.js index 65d5dcb..3000ac8 100644 --- a/assets/js/halcyon/halcyonFunctions.js +++ b/assets/js/halcyon/halcyonFunctions.js @@ -476,7 +476,7 @@ $('.overlay_redirect_invidious').removeClass('invisible'); } } function checkStatusLinks(text) { -$(text).find("a").each(function(i) { +$(""+text+"").find("a").each(function(i) { const ytcom = $(this).attr('href').match(/https?:\/\/(www\.)?youtube\.com\/watch\?v=([a-zA-Z\d_-]+)/); const htcom = $(this).attr('href').match(/https?:\/\/(www\.)?hooktube\.com\/watch\?v=([a-zA-Z\d_-]+)/); const ivcom = $(this).attr('href').match(/https?:\/\/(www\.)?invidio\.us\/watch\?v=([a-zA-Z\d_-]+)/);