mirror of
https://github.com/nkanaev/yarr.git
synced 2025-05-24 00:33:14 +00:00
use item.link as base url
This commit is contained in:
parent
7f70a56690
commit
c11962aed3
@ -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…
x
Reference in New Issue
Block a user