From 3a27e637f81068dac357696e60b0fc3b5c2b9768 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Thu, 7 Mar 2024 01:28:26 -0700 Subject: [PATCH] Update Post.vue --- resources/assets/components/Post.vue | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/resources/assets/components/Post.vue b/resources/assets/components/Post.vue index 6b3361351..3af231d71 100644 --- a/resources/assets/components/Post.vue +++ b/resources/assets/components/Post.vue @@ -171,7 +171,7 @@ } }, - beforeMount() { + created() { this.init(); }, @@ -181,20 +181,7 @@ methods: { init() { - if(this.cachedStatus && this.cachedProfile) { - this.post = this.cachedStatus; - this.media = this.post.media_attachments; - this.profile = this.post.account; - this.user = this.cachedProfile; - if(this.post.in_reply_to_id) { - this.fetchReply(); - } else { - this.isReply = false; - this.fetchRelationship(); - } - } else { - this.fetchSelf(); - } + this.fetchSelf(); }, fetchSelf() {