Skip to content

Commit

Permalink
chore: add more comment about spam check
Browse files Browse the repository at this point in the history
  • Loading branch information
anatawa12 committed Nov 4, 2024
1 parent 61530c6 commit b68238b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/backend/src/core/activitypub/models/ApNoteService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,8 @@ export class ApNoteService {
}
}

// for spam check, we only want to know if the reply / quote target is local user or not.
// so we don't have to resolve the note, we just fetch from DB.
// reply
const reply: MiNote | null = note.inReplyTo ? await this.fetchNote(getApId(note.inReplyTo)) : null;

Expand Down

0 comments on commit b68238b

Please sign in to comment.