summaryrefslogtreecommitdiff
path: root/packages/client/src/scripts/get-note-menu.ts
diff options
context:
space:
mode:
authorJohann150 <johann.galle@protonmail.com>2022-01-20 19:06:38 +0100
committerGitHub <noreply@github.com>2022-01-21 03:06:38 +0900
commitcbb7e95d82d363d96462b90943bf329469ad08df (patch)
tree7515ea3c4ab8e9315265a86245af74f126701563 /packages/client/src/scripts/get-note-menu.ts
parentfix: code url in documentation (#8117) (diff)
downloadsharkey-cbb7e95d82d363d96462b90943bf329469ad08df.tar.gz
sharkey-cbb7e95d82d363d96462b90943bf329469ad08df.tar.bz2
sharkey-cbb7e95d82d363d96462b90943bf329469ad08df.zip
enhance: Forward report (#8001)
* implement sending AP Flag object Optionally allow a user to select to forward a report about a remote user to the other instance. This is added in a backwards-compatible way. * add locale string * forward report only for moderators * add switch to moderator UI to forward report * fix report note url * return forwarded status from API apparently forgot to carry this over from my testing environment * object in Flag activity has to be an array For correct interoperability with Pleroma the "object" property of the Flag activity has to be an array. This array will in the future also hold the link to respective notes, so it makes sense to correct this on our side. * Update get-note-menu.ts Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
Diffstat (limited to 'packages/client/src/scripts/get-note-menu.ts')
-rw-r--r--packages/client/src/scripts/get-note-menu.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/client/src/scripts/get-note-menu.ts b/packages/client/src/scripts/get-note-menu.ts
index 61120d53ba..3634f39632 100644
--- a/packages/client/src/scripts/get-note-menu.ts
+++ b/packages/client/src/scripts/get-note-menu.ts
@@ -252,7 +252,7 @@ export function getNoteMenu(props: {
icon: 'fas fa-exclamation-circle',
text: i18n.locale.reportAbuse,
action: () => {
- const u = `${url}/notes/${appearNote.id}`;
+ const u = appearNote.url || appearNote.uri || `${url}/notes/${appearNote.id}`;
os.popup(import('@/components/abuse-report-window.vue'), {
user: appearNote.user,
initialComment: `Note: ${u}\n-----\n`