diff --git a/src/components/Entry.vue b/src/components/Entry.vue index 7de67de..76e56e5 100644 --- a/src/components/Entry.vue +++ b/src/components/Entry.vue @@ -37,7 +37,7 @@ Debug Like Repost - Reply + Reply @@ -110,7 +110,9 @@ return 'anonymouse'; } if (!this.item.author.name) { - return new URL(this.item.author.url).hostname + if (this.item.author.url) { + return new URL(this.item.author.url).hostname + } } return this.item.author.name }, @@ -118,12 +120,18 @@ if (!this.item.author) { return ''; } + if (!this.item.author.url) { + return ''; + } return this.item.author.url }, author_photo() { if (!this.item.author) { return ''; } + if (!this.item.author.photo) { + return ''; + } return this.item.author.photo } }