fix(backend): fix security patches (#15008)

(cherry picked from commit 53e827b18c46f786268278645206404ff2d95f72)
This commit is contained in:
かっこかり 2024-11-21 10:30:30 +09:00 committed by あわわわとーにゅ
parent 710e719fc5
commit ed68245177
No known key found for this signature in database
GPG key ID: 6AFBBF529601C1DB
2 changed files with 3 additions and 3 deletions

View file

@ -131,7 +131,7 @@ export class ApInboxService {
if (actor.uri) { if (actor.uri) {
if (actor.lastFetchedAt == null || Date.now() - actor.lastFetchedAt.getTime() > 1000 * 60 * 60 * 24) { if (actor.lastFetchedAt == null || Date.now() - actor.lastFetchedAt.getTime() > 1000 * 60 * 60 * 24) {
setImmediate(() => { setImmediate(() => {
this.apPersonService.updatePerson(actor.uri); this.apPersonService.updatePerson(actor.uri, resolver);
}); });
} }
} }

View file

@ -143,8 +143,8 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
return await this.mergePack( return await this.mergePack(
me, me,
isActor(object) ? await this.apPersonService.createPerson(getApId(object)) : null, isActor(object) ? await this.apPersonService.createPerson(getApId(object), resolver) : null,
isPost(object) ? await this.apNoteService.createNote(getApId(object), undefined, resolver) : null, isPost(object) ? await this.apNoteService.createNote(getApId(object), undefined, resolver, true) : null,
); );
} }