fix content finding for Discourse
This commit is contained in:
parent
b9a47baa00
commit
0fff9095e1
@ -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))){
|
||||
|
Loading…
Reference in New Issue
Block a user