Skip to content

Commit

Permalink
リモートユーザーを通報した場合に対応
Browse files Browse the repository at this point in the history
  • Loading branch information
tamo-morita committed May 6, 2023
1 parent fded63c commit 8b6e303
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/frontend/src/scripts/get-note-menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -329,9 +329,11 @@ export function getNoteMenu(props: {
text: i18n.ts.reportAbuse,
action: () => {
const u = appearNote.url ?? appearNote.uri ?? `${url}/notes/${appearNote.id}`;
const username = '@' + props.note.user.username;
const host = props.note.user.host ? '@' + props.note.user.host : '';
os.popup(defineAsyncComponent(() => import('@/components/MkAbuseReportWindow.vue')), {
user: appearNote.user,
initialComment: `Note: ${u}\nUserID: @${props.note.user.username}\n-----\n`,
initialComment: `Note: ${u}\nUser: ${username + host}\n-----\n`,
}, {}, 'closed');
},
}]
Expand Down

0 comments on commit 8b6e303

Please sign in to comment.