From c25e9557b984e68281649d78ec6a4cadbad023b8 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 29 May 2018 01:50:01 +0900 Subject: [PATCH] :v: --- src/server/api/endpoints/notes.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/server/api/endpoints/notes.ts b/src/server/api/endpoints/notes.ts index 21946d1bd..e6fe80ac8 100644 --- a/src/server/api/endpoints/notes.ts +++ b/src/server/api/endpoints/notes.ts @@ -53,7 +53,9 @@ module.exports = (params) => new Promise(async (res, rej) => { const sort = { _id: -1 }; - const query = {} as any; + const query = { + visibility: 'public' + } as any; if (sinceId) { sort._id = 1; query._id = {