Skip to content

Commit

Permalink
Update Post.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
dansup committed Mar 7, 2024
1 parent eccdbe1 commit 3a27e63
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions resources/assets/components/Post.vue
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@
}
},
beforeMount() {
created() {
this.init();
},
Expand All @@ -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() {
Expand Down

0 comments on commit 3a27e63

Please sign in to comment.