fix: ♻️ add data.localOnly back to dontFederateInitially check

ref: https://git.joinfirefish.org/firefish/firefish/-/merge_requests/10639#note_2651
This commit is contained in:
ThatOneCalculator 2023-11-12 10:46:28 -08:00
parent 8ef1130330
commit 31ccedf177
No known key found for this signature in database
GPG Key ID: 8703CACD01000000

View File

@ -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<Note>(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.)