From 0a4015b8a2eca0c628be077e53d078e1b6cab1af Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 19 Oct 2018 09:19:55 +0900 Subject: [PATCH] Refactoring --- src/server/activitypub.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/activitypub.ts b/src/server/activitypub.ts index adbc6639f..8da933a0f 100644 --- a/src/server/activitypub.ts +++ b/src/server/activitypub.ts @@ -66,7 +66,7 @@ router.get('/notes/:note', async (ctx, next) => { const note = await Note.findOne({ _id: new mongo.ObjectID(ctx.params.note), - $or: [ { visibility: 'public' }, { visibility: 'home' } ] + visibility: { $in: ['public', 'home'] } }); if (note === null) {