diff options
| author | tamaina <tamaina@hotmail.co.jp> | 2022-01-21 21:32:50 +0900 |
|---|---|---|
| committer | tamaina <tamaina@hotmail.co.jp> | 2022-01-21 21:32:50 +0900 |
| commit | b5a20494f6032f840475bb69c79ccc2ffac11b7c (patch) | |
| tree | 9da47076c540446cf818f456eca697d423fd5ef4 /packages/client/src/scripts/get-user-menu.ts | |
| parent | Merge branch 'develop' into pizzax-indexeddb (diff) | |
| parent | chore(client): add #misskey button (diff) | |
| download | misskey-b5a20494f6032f840475bb69c79ccc2ffac11b7c.tar.gz misskey-b5a20494f6032f840475bb69c79ccc2ffac11b7c.tar.bz2 misskey-b5a20494f6032f840475bb69c79ccc2ffac11b7c.zip | |
Merge branch 'develop' into pizzax-indexeddb
Diffstat (limited to 'packages/client/src/scripts/get-user-menu.ts')
| -rw-r--r-- | packages/client/src/scripts/get-user-menu.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/client/src/scripts/get-user-menu.ts b/packages/client/src/scripts/get-user-menu.ts index ebe101bc0f..7b910a0083 100644 --- a/packages/client/src/scripts/get-user-menu.ts +++ b/packages/client/src/scripts/get-user-menu.ts @@ -5,7 +5,7 @@ import * as Acct from 'misskey-js/built/acct'; import * as os from '@/os'; import { userActions } from '@/store'; import { router } from '@/router'; -import { $i } from '@/account'; +import { $i, iAmModerator } from '@/account'; export function getUserMenu(user) { const meId = $i ? $i.id : null; @@ -175,7 +175,7 @@ export function getUserMenu(user) { action: reportAbuse }]); - if ($i && ($i.isAdmin || $i.isModerator)) { + if (iAmModerator) { menu = menu.concat([null, { icon: 'fas fa-microphone-slash', text: user.isSilenced ? i18n.locale.unsilence : i18n.locale.silence, |