Skip to content

Commit 3a27e63

Browse files
committed
Update Post.vue
1 parent eccdbe1 commit 3a27e63

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

resources/assets/components/Post.vue

+2-15
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@
171171
}
172172
},
173173
174-
beforeMount() {
174+
created() {
175175
this.init();
176176
},
177177
@@ -181,20 +181,7 @@
181181
182182
methods: {
183183
init() {
184-
if(this.cachedStatus && this.cachedProfile) {
185-
this.post = this.cachedStatus;
186-
this.media = this.post.media_attachments;
187-
this.profile = this.post.account;
188-
this.user = this.cachedProfile;
189-
if(this.post.in_reply_to_id) {
190-
this.fetchReply();
191-
} else {
192-
this.isReply = false;
193-
this.fetchRelationship();
194-
}
195-
} else {
196-
this.fetchSelf();
197-
}
184+
this.fetchSelf();
198185
},
199186
200187
fetchSelf() {

0 commit comments

Comments
 (0)