From e6dc62347c273703f7942e23d83aa3c717560350 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 25 Mar 2023 02:38:25 -0600 Subject: [PATCH] Update Post component, show state error when status account is null or missing --- resources/assets/components/Post.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/resources/assets/components/Post.vue b/resources/assets/components/Post.vue index 7e0774933..842b15dd5 100644 --- a/resources/assets/components/Post.vue +++ b/resources/assets/components/Post.vue @@ -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;