mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-09 16:24:51 +00:00
Update Post.vue
This commit is contained in:
parent
eccdbe1f57
commit
3a27e637f8
1 changed files with 2 additions and 15 deletions
|
@ -171,7 +171,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
beforeMount() {
|
created() {
|
||||||
this.init();
|
this.init();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -181,20 +181,7 @@
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
init() {
|
init() {
|
||||||
if(this.cachedStatus && this.cachedProfile) {
|
this.fetchSelf();
|
||||||
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();
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
fetchSelf() {
|
fetchSelf() {
|
||||||
|
|
Loading…
Reference in a new issue