From 8719bf7dacab7ed47ad53e840eb59ecde9e4e770 Mon Sep 17 00:00:00 2001 From: Louis Chemineau Date: Tue, 11 Apr 2023 19:31:01 +0200 Subject: [PATCH] Switch visibility and timestamp in status Signed-off-by: Louis Chemineau --- src/components/TimelinePost.vue | 36 ++++++++++++++------------------- 1 file changed, 15 insertions(+), 21 deletions(-) diff --git a/src/components/TimelinePost.vue b/src/components/TimelinePost.vue index ed2a067f..5d5683dd 100644 --- a/src/components/TimelinePost.vue +++ b/src/components/TimelinePost.vue @@ -14,16 +14,16 @@ - +
@@ -208,24 +208,18 @@ export default { getSinglePostTimeline(e) { // Display internal or external post if (!this.isLocal) { - // TODO - fix - if (this.type === 'Note') { - window.open(this.item.id) - } else if (this.type === 'Announce') { - window.open(this.item.object) - } else { - logger.warn("Don't know what to do with posts of type " + this.type, { post: this.item }) - } - } else { - this.$router.push({ - name: 'single-post', - params: { - account: this.item.account.display_name, - id: this.item.id, - type: 'single-post', - }, - }) + logger.warn("Don't know what to do with posts of type " + this.type, { post: this.item }) + return } + + this.$router.push({ + name: 'single-post', + params: { + account: this.item.account.display_name, + id: this.item.id, + type: 'single-post', + }, + }) }, userDisplayName(actorInfo) { return actorInfo.name !== '' ? actorInfo.name : actorInfo.preferredUsername