Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kozakura913 committed Jan 16, 2025
1 parent 0daa0fa commit c64713d
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions packages/backend/src/server/ActivityPubServerService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -435,14 +435,11 @@ export class ActivityPubServerService {
clipId: clip.id,
});
const activities : IObject[] = (await Promise.all(notes.map(async clip_note => {
const note = await this.notesRepository.findOneBy({
id: clip_note.id,
});
if (note === null) return null;
if (note.localOnly) return null;
if (clip_note.note === null) return null;
if (clip_note.note.localOnly) return null;
return {
type: 'Note',
object: note.uri ?? undefined,
object: clip_note.note.uri ?? undefined,
};
}))).filter(activitie => activitie != null);
const partOf = `${this.config.url}/clips/${clip.id}`;
Expand Down

0 comments on commit c64713d

Please sign in to comment.