Update ContextMenu, add missing statusUrl method

This commit is contained in:
Daniel Supernault 2021-07-01 17:26:14 -06:00
parent 9ac8bbde91
commit 3cffdb116f
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -583,6 +583,7 @@
swal('Success', 'Successfully marked account as spammer', 'success'); swal('Success', 'Successfully marked account as spammer', 'success');
self.ctxModMenuClose(); self.ctxModMenuClose();
}).catch(err => { }).catch(err => {
console.log(err);
self.ctxModMenuClose(); self.ctxModMenuClose();
swal( swal(
'Error', 'Error',
@ -617,6 +618,14 @@
swal('Error', 'Something went wrong, please try again later.', 'error'); 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;
}
} }
} }
</script> </script>