From 0fff9095e1317b92c852899601a64fe30c7a68a7 Mon Sep 17 00:00:00 2001 From: Peter Date: Wed, 14 Jul 2021 20:21:11 +0100 Subject: [PATCH] fix content finding for Discourse --- app/assets/js/scripts/landing.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/js/scripts/landing.js b/app/assets/js/scripts/landing.js index ff3b0129..d11b1746 100644 --- a/app/assets/js/scripts/landing.js +++ b/app/assets/js/scripts/landing.js @@ -1258,7 +1258,7 @@ function loadNews(){ comments = comments + ' Comment' + (comments === '1' ? '' : 's') // Fix relative links in content. - let content = el.find('content\\:encoded').text() + let content = el.find('description').text() let regex = /src="(?!http:\/\/|https:\/\/)(.+?)"/g let matches while((matches = regex.exec(content))){