mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-22 05:55:12 +00:00
Update report-abuse.ts
This commit is contained in:
parent
e783359aca
commit
8477909af2
1 changed files with 0 additions and 4 deletions
|
@ -66,10 +66,6 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
throw new ApiError(meta.errors.cannotReportYourself);
|
throw new ApiError(meta.errors.cannotReportYourself);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (await this.roleService.isAdministrator(targetUser)) {
|
|
||||||
throw new ApiError(meta.errors.cannotReportAdmin);
|
|
||||||
}
|
|
||||||
|
|
||||||
await this.abuseReportService.report([{
|
await this.abuseReportService.report([{
|
||||||
targetUserId: targetUser.id,
|
targetUserId: targetUser.id,
|
||||||
targetUserHost: targetUser.host,
|
targetUserHost: targetUser.host,
|
||||||
|
|
Loading…
Reference in a new issue