mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 15:34:13 +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) => {
 | 
			
		||||
			const file = await driveFilesRepository.findOneByOrFail({ id: ps.fileId });
 | 
			
		||||
			await this.moderationLogService.log(me, 'importCustomEmojis', {
 | 
			
		||||
				fileId: file.id,
 | 
			
		||||
				fileName: file.name,
 | 
			
		||||
			});
 | 
			
		||||
			await this.queueService.createImportCustomEmojisJob(me, ps.fileId);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -493,7 +493,6 @@ export type ModerationLogPayloads = {
 | 
			
		|||
		delAliases?: string[],
 | 
			
		||||
	},
 | 
			
		||||
	importCustomEmojis: {
 | 
			
		||||
		fileId: string,
 | 
			
		||||
		fileName: string,
 | 
			
		||||
	},
 | 
			
		||||
	clearInstanceFiles: {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -256,7 +256,7 @@ SPDX-License-Identifier: AGPL-3.0-only
 | 
			
		|||
			<div>{{ i18n.ts.filesRemoved }}: {{ log.info.count }}</div>
 | 
			
		||||
		</template>
 | 
			
		||||
		<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 v-else-if="log.type === 'clearInstanceFiles'">
 | 
			
		||||
			<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[],
 | 
			
		||||
	};
 | 
			
		||||
	importCustomEmojis: {
 | 
			
		||||
		fileId: string,
 | 
			
		||||
		fileName: string,
 | 
			
		||||
	};
 | 
			
		||||
	clearInstanceFiles: {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue