mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-04-28 09:36:56 +00:00
remove fileId
from importCustomEmojis
log
This commit is contained in:
parent
86a7d33f3f
commit
9fdb68d568
4 changed files with 1 additions and 4 deletions
|
@ -35,7 +35,6 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
super(meta, paramDef, async (ps, me) => {
|
super(meta, paramDef, async (ps, me) => {
|
||||||
const file = await driveFilesRepository.findOneByOrFail({ id: ps.fileId });
|
const file = await driveFilesRepository.findOneByOrFail({ id: ps.fileId });
|
||||||
await this.moderationLogService.log(me, 'importCustomEmojis', {
|
await this.moderationLogService.log(me, 'importCustomEmojis', {
|
||||||
fileId: file.id,
|
|
||||||
fileName: file.name,
|
fileName: file.name,
|
||||||
});
|
});
|
||||||
await this.queueService.createImportCustomEmojisJob(me, ps.fileId);
|
await this.queueService.createImportCustomEmojisJob(me, ps.fileId);
|
||||||
|
|
|
@ -493,7 +493,6 @@ export type ModerationLogPayloads = {
|
||||||
delAliases?: string[],
|
delAliases?: string[],
|
||||||
},
|
},
|
||||||
importCustomEmojis: {
|
importCustomEmojis: {
|
||||||
fileId: string,
|
|
||||||
fileName: string,
|
fileName: string,
|
||||||
},
|
},
|
||||||
clearInstanceFiles: {
|
clearInstanceFiles: {
|
||||||
|
|
|
@ -256,7 +256,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
<div>{{ i18n.ts.filesRemoved }}: {{ log.info.count }}</div>
|
<div>{{ i18n.ts.filesRemoved }}: {{ log.info.count }}</div>
|
||||||
</template>
|
</template>
|
||||||
<template v-else-if="log.type === 'importCustomEmojis'">
|
<template v-else-if="log.type === 'importCustomEmojis'">
|
||||||
<div>{{ i18n.ts.fileImported }}: <MkA :to="`/admin/file/${log.info.fileId}`" class="_link">{{ log.info.fileName }}</MkA></div>
|
<div>{{ i18n.ts.fileImported }}: {{ log.info.fileName }}</div>
|
||||||
</template>
|
</template>
|
||||||
<template v-else-if="log.type === 'clearInstanceFiles'">
|
<template v-else-if="log.type === 'clearInstanceFiles'">
|
||||||
<div>{{ i18n.ts.host }}: <MkA :to="`/instance-info/${log.info.host}`" class="_link">{{ log.info.host }}</MkA></div>
|
<div>{{ i18n.ts.host }}: <MkA :to="`/instance-info/${log.info.host}`" class="_link">{{ log.info.host }}</MkA></div>
|
||||||
|
|
|
@ -546,7 +546,6 @@ export type ModerationLogPayloads = {
|
||||||
delAliases?: string[],
|
delAliases?: string[],
|
||||||
};
|
};
|
||||||
importCustomEmojis: {
|
importCustomEmojis: {
|
||||||
fileId: string,
|
|
||||||
fileName: string,
|
fileName: string,
|
||||||
};
|
};
|
||||||
clearInstanceFiles: {
|
clearInstanceFiles: {
|
||||||
|
|
Loading…
Add table
Reference in a new issue