enhance(delete): we all love to archive their black(out) history

This commit is contained in:
オスカー、 2025-01-01 18:51:33 +09:00
parent b10ea1b79f
commit ac58cc3ac5
No known key found for this signature in database
GPG key ID: 139D6573F92DA9F7

View file

@ -66,6 +66,10 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
throw err; throw err;
}); });
if (note.id === 'a2h9mk6pav') {
throw new ApiError(meta.errors.accessDenied);
}
if (!await this.roleService.isModerator(me) && (note.userId !== me.id)) { if (!await this.roleService.isModerator(me) && (note.userId !== me.id)) {
throw new ApiError(meta.errors.accessDenied); throw new ApiError(meta.errors.accessDenied);
} }