mirror of
https://github.com/sim1222/misskey.git
synced 2025-04-29 10:47:35 +09:00
refix: return exception when no admin/mod
This commit is contained in:
parent
b54127eaa2
commit
c68ab5f229
@ -45,6 +45,7 @@ export async function openReactionImportMenu(ev: MouseEvent, reaction: string):
|
|||||||
const getEmojiId = async (): Promise<string | null> => {
|
const getEmojiId = async (): Promise<string | null> => {
|
||||||
if (isLocal) return null;
|
if (isLocal) return null;
|
||||||
if (!host || !name) return null;
|
if (!host || !name) return null;
|
||||||
|
if (!($i?.isAdmin || $i?.isModerator)) return null;
|
||||||
|
|
||||||
const resList: Record<string, any>[] = await os.api('admin/emoji/list-remote', {
|
const resList: Record<string, any>[] = await os.api('admin/emoji/list-remote', {
|
||||||
host,
|
host,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user