mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-12-05 02:08:56 +09:00
Fix: リモートサーバーから転送された通報も対象に追加
This commit is contained in:
parent
36b841215c
commit
fd3353bcfe
@ -512,7 +512,7 @@ export class ApInboxService {
|
||||
});
|
||||
if (users.length < 1) return 'skip';
|
||||
|
||||
await this.abuseUserReportsRepository.insert({
|
||||
const report = await this.abuseUserReportsRepository.insert({
|
||||
id: this.idService.genId(),
|
||||
createdAt: new Date(),
|
||||
targetUserId: users[0].id,
|
||||
@ -520,7 +520,9 @@ export class ApInboxService {
|
||||
reporterId: actor.id,
|
||||
reporterHost: actor.host,
|
||||
comment: `${activity.content}\n${JSON.stringify(uris, null, 2)}`,
|
||||
});
|
||||
}).then(x => this.abuseUserReportsRepository.findOneByOrFail(x.identifiers[0]));
|
||||
|
||||
this.queueService.createReportAbuseJob(report);
|
||||
|
||||
return 'ok';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user