From 31ccedf1776f5a3c19940fe53a2647b8cbb0d7d1 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Sun, 12 Nov 2023 10:46:28 -0800 Subject: [PATCH] fix: :recycle: add data.localOnly back to dontFederateInitially check ref: https://git.joinfirefish.org/firefish/firefish/-/merge_requests/10639#note_2651 --- packages/backend/src/services/note/create.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/services/note/create.ts b/packages/backend/src/services/note/create.ts index 014f9ecfa..63a295fb3 100644 --- a/packages/backend/src/services/note/create.ts +++ b/packages/backend/src/services/note/create.ts @@ -173,9 +173,9 @@ export default async ( data: Option, silent = false, ) => - // rome-ignore lint/suspicious/noAsyncPromiseExecutor: FIXME + // biome-ignore lint/suspicious/noAsyncPromiseExecutor: FIXME new Promise(async (res, rej) => { - const dontFederateInitially = data.visibility?.startsWith("hidden") === true; + const dontFederateInitially = data.localOnly || data.visibility?.startsWith("hidden") === true; // 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.)