diff options
| author | MeiMei <30769358+mei23@users.noreply.github.com> | 2018-12-23 23:23:56 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2018-12-23 23:23:56 +0900 |
| commit | a53e0d9f732a1d198f780f0900b9f99bbfbb39f6 (patch) | |
| tree | 61a65272adf2f4af5400b11e6bbeb535464aa6ad /src/remote | |
| parent | Fix: can not update remote Misskey user (#3731) (diff) | |
| download | sharkey-a53e0d9f732a1d198f780f0900b9f99bbfbb39f6.tar.gz sharkey-a53e0d9f732a1d198f780f0900b9f99bbfbb39f6.tar.bz2 sharkey-a53e0d9f732a1d198f780f0900b9f99bbfbb39f6.zip | |
Fix error in featuredNotes (#3730)
Diffstat (limited to 'src/remote')
| -rw-r--r-- | src/remote/activitypub/models/person.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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) } }); } |