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:
parent
9ac8bbde91
commit
3cffdb116f
1 changed files with 9 additions and 0 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue