1
0
Fork 0
mirror of https://github.com/paricafe/misskey.git synced 2025-03-24 14:29:26 -05:00

fix(backend): fix security patches ()

This commit is contained in:
かっこかり 2024-11-21 10:30:30 +09:00 committed by GitHub
parent 0f59adc436
commit 53e827b18c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions
packages/backend/src
core/activitypub
server/api/endpoints/ap

View file

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

View file

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