diff --git a/src/remote/activitypub/models/person.ts b/src/remote/activitypub/models/person.ts index ec9455ca0e..f6c30ffb27 100644 --- a/src/remote/activitypub/models/person.ts +++ b/src/remote/activitypub/models/person.ts @@ -441,7 +441,7 @@ export async function updateFeatured(userId: mongo.ObjectID) { await User.update({ _id: user._id }, { $set: { - pinnedNoteIds: featuredNotes.map(note => note._id) + pinnedNoteIds: featuredNotes.filter(note => note != null).map(note => note._id) } }); }