Fix local-only posts for timeline websocket stream

This commit is contained in:
Laura Hausmann 2023-08-19 15:54:59 +02:00 committed by Namekuji
parent 69f802e15b
commit 29bb1453fc
No known key found for this signature in database
GPG key ID: 1D62332C07FBA532

View file

@ -171,8 +171,7 @@ export default async (
) => ) =>
// rome-ignore lint/suspicious/noAsyncPromiseExecutor: FIXME // rome-ignore lint/suspicious/noAsyncPromiseExecutor: FIXME
new Promise<Note>(async (res, rej) => { new Promise<Note>(async (res, rej) => {
const dontFederateInitially = const dontFederateInitially = data.visibility === "hidden";
data.localOnly || data.visibility?.startsWith("hidden");
// If you reply outside the channel, match the scope of the target. // 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.) // TODO (I think it's a process that could be done on the client side, but it's server side for now.)