From 3cffdb116fc094f106678c3c2a742c353de0775d Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Thu, 1 Jul 2021 17:26:14 -0600 Subject: [PATCH] Update ContextMenu, add missing statusUrl method --- resources/assets/js/components/partials/ContextMenu.vue | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/resources/assets/js/components/partials/ContextMenu.vue b/resources/assets/js/components/partials/ContextMenu.vue index 35402d81..ebca5a7d 100644 --- a/resources/assets/js/components/partials/ContextMenu.vue +++ b/resources/assets/js/components/partials/ContextMenu.vue @@ -583,6 +583,7 @@ swal('Success', 'Successfully marked account as spammer', 'success'); self.ctxModMenuClose(); }).catch(err => { + console.log(err); self.ctxModMenuClose(); swal( 'Error', @@ -617,6 +618,14 @@ swal('Error', 'Something went wrong, please try again later.', 'error'); }); }, + + statusUrl(status) { + if(status.local == true) { + return status.url; + } + + return '/i/web/post/_/' + status.account.id + '/' + status.id; + } } }