From 142b6ef28bf2792d5d7e483c4e6d14880bfbe24a Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Wed, 29 Aug 2018 20:09:48 +0200 Subject: [PATCH] Improve entries with missing info --- src/components/Entry.vue | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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 } }