Skip to content

Commit

Permalink
Update Post component, show state error when status account is null o…
Browse files Browse the repository at this point in the history
…r missing
  • Loading branch information
dansup committed Mar 25, 2023
1 parent ed96137 commit e6dc623
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions resources/assets/components/Post.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e6dc623

Please sign in to comment.