mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-25 05:29:07 +01:00
Add user options to note menu
This commit is contained in:
parent
232c7039a1
commit
e890e606aa
@ -8,6 +8,7 @@ import copyToClipboard from "@/scripts/copy-to-clipboard";
|
||||
import { url } from "@/config";
|
||||
import { noteActions } from "@/store";
|
||||
import { shareAvailable } from "@/scripts/share-available";
|
||||
import { getUserMenu } from "@/scripts/get-user-menu";
|
||||
|
||||
export function getNoteMenu(props: {
|
||||
note: misskey.entities.Note;
|
||||
@ -412,6 +413,14 @@ export function getNoteMenu(props: {
|
||||
action: del,
|
||||
}
|
||||
: undefined,
|
||||
!isAppearAuthor ? null : undefined,
|
||||
!isAppearAuthor
|
||||
? {
|
||||
type: "parent",
|
||||
icon: "ph-user ph-bold ph-lg",
|
||||
text: i18n.ts.user,
|
||||
children: getUserMenu(appearNote.user)
|
||||
} : undefined,
|
||||
].filter((x) => x !== undefined);
|
||||
} else {
|
||||
menu = [
|
||||
|
Loading…
Reference in New Issue
Block a user