use item.link as base url
This commit is contained in:
parent
7f70a56690
commit
c11962aed3
1 changed files with 2 additions and 2 deletions
|
|
@ -222,7 +222,7 @@ var vm = new Vue({
|
||||||
else if (this.itemSelectedDetails.description)
|
else if (this.itemSelectedDetails.description)
|
||||||
content = this.itemSelectedDetails.description
|
content = this.itemSelectedDetails.description
|
||||||
|
|
||||||
return sanitize(content, this.feedsById[this.itemSelectedDetails.feed_id].link || this.itemSelectedDetails.link)
|
return sanitize(content, this.itemSelectedDetails.link)
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
|
@ -511,7 +511,7 @@ var vm = new Vue({
|
||||||
api.crawl(item.link).then(function(body) {
|
api.crawl(item.link).then(function(body) {
|
||||||
vm.loading.readability = false
|
vm.loading.readability = false
|
||||||
if (!body.length) return
|
if (!body.length) return
|
||||||
var bodyClean = sanitize(body, vm.feedsById[item.feed_id].link || item.link)
|
var bodyClean = sanitize(body, item.link)
|
||||||
var doc = new DOMParser().parseFromString(bodyClean, 'text/html')
|
var doc = new DOMParser().parseFromString(bodyClean, 'text/html')
|
||||||
var parsed = new Readability(doc).parse()
|
var parsed = new Readability(doc).parse()
|
||||||
if (parsed && parsed.content) {
|
if (parsed && parsed.content) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue