From 29bb1453fc33f4cd9c15478e31ebcc92db53a9b1 Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Sat, 19 Aug 2023 15:54:59 +0200 Subject: [PATCH] Fix local-only posts for timeline websocket stream --- packages/backend/src/services/note/create.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/backend/src/services/note/create.ts b/packages/backend/src/services/note/create.ts index a08e32889..689bd6616 100644 --- a/packages/backend/src/services/note/create.ts +++ b/packages/backend/src/services/note/create.ts @@ -171,8 +171,7 @@ export default async ( ) => // rome-ignore lint/suspicious/noAsyncPromiseExecutor: FIXME new Promise(async (res, rej) => { - const dontFederateInitially = - data.localOnly || data.visibility?.startsWith("hidden"); + const dontFederateInitially = data.visibility === "hidden"; // If you reply outside the channel, match the scope of the target. // TODO (I think it's a process that could be done on the client side, but it's server side for now.)