From dbcf2e24bf188ba51783689606de9a9d441167ca Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Sat, 20 Nov 2021 23:41:40 +0100 Subject: [PATCH] Problem: bookmarks don't show references posts Solution: bookmarks should be handled as references --- src/components/Entry.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/components/Entry.vue b/src/components/Entry.vue index 16d78d6..152478f 100644 --- a/src/components/Entry.vue +++ b/src/components/Entry.vue @@ -254,14 +254,19 @@ export default { return this.item.refs[this.item['like-of']] } else if (this.isRepost) { return this.item.refs[this.item['repost-of']] + } else if (this.isBookmark) { + return this.item.refs[this.item['bookmark-of']] } }, isRef() { - return this.isLike || this.isRepost + return this.isLike || this.isRepost || this.isBookmark }, isLike() { return this.hasRef('like-of') }, + isBookmark() { + return this.hasRef('bookmark-of') + }, isRepost() { return this.hasRef('repost-of') }, @@ -272,6 +277,9 @@ export default { if (this.isRepost) { return 'reposted' } + if (this.isBookmark) { + return 'bookmarked' + } return '' }, main_content() {