Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
penginn-net committed Jan 10, 2025
1 parent 49428f3 commit 1aa68af
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export const meta = {
usageInfo: { type: 'string', nullable: true, description: '使用する際の説明' },
author: { type: 'string', nullable: true, description: '作者情報' },
description: { type: 'string', nullable: true, description: '絵文字の説明' },
isBasedOn: { type: 'string', nullable: true, description: 'もとになったもののURLなど' },
},
},
},
Expand Down
7 changes: 7 additions & 0 deletions packages/backend/src/server/api/endpoints/admin/emoji/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import type { MiEmoji } from '@/models/Emoji.js';
import { QueryService } from '@/core/QueryService.js';
import { DI } from '@/di-symbols.js';
import { EmojiEntityService } from '@/core/entities/EmojiEntityService.js';
import {emojiCopyPermissions} from "@/types.js";

Check failure on line 13 in packages/backend/src/server/api/endpoints/admin/emoji/list.ts

View workflow job for this annotation

GitHub Actions / lint (backend)

A space is required after '{'

Check failure on line 13 in packages/backend/src/server/api/endpoints/admin/emoji/list.ts

View workflow job for this annotation

GitHub Actions / lint (backend)

A space is required before '}'
//import { sqlLikeEscape } from '@/misc/sql-like-escape.js';

export const meta = {
Expand Down Expand Up @@ -56,6 +57,12 @@ export const meta = {
type: 'string',
optional: false, nullable: false,
},

copyPermission: { type: 'string', enum: emojiCopyPermissions, nullable: true, description: 'この絵文字を外部サーバーへコピーすることの許可' },
usageInfo: { type: 'string', nullable: true, description: '使用する際の説明' },
author: { type: 'string', nullable: true, description: '作者情報' },
description: { type: 'string', nullable: true, description: '絵文字の説明' },
isBasedOn: { type: 'string', nullable: true, description: 'もとになったもののURLなど' },
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ SPDX-License-Identifier: AGPL-3.0-only
<template #key>{{ i18n.ts._emoji.author }}</template>
<template #value><Mfm :text="emoji.author ?? i18n.ts.none"/></template>
</MkKeyValue>
<MkKeyValue>
<template #key>{{ i18n.ts._emoji.isBasedOn }}</template>
<template #value><Mfm :text="emoji.isBasedOn ?? i18n.ts.none"/></template>
</MkKeyValue>
<MkKeyValue :copy="emoji.url">
<template #key>{{ i18n.ts.emojiUrl }}</template>
<template #value>
Expand Down

0 comments on commit 1aa68af

Please sign in to comment.