1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-25 17:26:43 +00:00

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');
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;
}
}
}
</script>