mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2025-01-21 04:52:54 +09:00
Fix error in featuredNotes (#3730)
This commit is contained in:
parent
26207a451b
commit
35a4fbc668
@ -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)
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user