mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 00:03:16 +00:00
Update Post component, show state error when status account is null or missing
This commit is contained in:
parent
ed961374a5
commit
e6dc62347c
1 changed files with 4 additions and 0 deletions
|
@ -197,6 +197,10 @@
|
|||
if(!res.data || !res.data.hasOwnProperty('id')) {
|
||||
this.$router.push('/i/web/404');
|
||||
}
|
||||
if(!res.data.hasOwnProperty('account') || !res.data.account) {
|
||||
this.postStateError = true;
|
||||
return;
|
||||
}
|
||||
this.post = res.data;
|
||||
this.media = this.post.media_attachments;
|
||||
this.profile = this.post.account;
|
||||
|
|
Loading…
Reference in a new issue