From e4f799bf1dbf56e803cca16aa92f9c7110746dd2 Mon Sep 17 00:00:00 2001 From: MeiMei <30769358+mei23@users.noreply.github.com> Date: Fri, 15 Feb 2019 08:38:59 +0900 Subject: [PATCH] Hide localOnly from welcome TL (#4257) --- src/client/app/common/views/components/welcome-timeline.vue | 1 + src/server/api/endpoints/notes.ts | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/client/app/common/views/components/welcome-timeline.vue b/src/client/app/common/views/components/welcome-timeline.vue index 115030481..d812549b1 100644 --- a/src/client/app/common/views/components/welcome-timeline.vue +++ b/src/client/app/common/views/components/welcome-timeline.vue @@ -76,6 +76,7 @@ export default Vue.extend({ if (note.replyId != null) return; if (note.renoteId != null) return; if (note.poll != null) return; + if (note.localOnly) return; this.notes.unshift(note); }, diff --git a/src/server/api/endpoints/notes.ts b/src/server/api/endpoints/notes.ts index 64575ee6e..f95ed19d2 100644 --- a/src/server/api/endpoints/notes.ts +++ b/src/server/api/endpoints/notes.ts @@ -80,7 +80,8 @@ export default define(meta, (ps) => new Promise(async (res, rej) => { }; const query = { deletedAt: null, - visibility: 'public' + visibility: 'public', + localOnly: { $ne: true }, } as any; if (ps.sinceId) { sort._id = 1;