fix content finding for Discourse

This commit is contained in:
Peter 2021-07-14 20:21:11 +01:00
parent b9a47baa00
commit 0fff9095e1

View File

@ -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))){