Fix local-only posts for timeline websocket stream, resolves #19

This commit is contained in:
Laura Hausmann 2023-08-19 15:54:59 +02:00
parent e1376b1c29
commit 04a1bd9363
No known key found for this signature in database
GPG Key ID: D044E84C5BE01605

View File

@ -171,8 +171,7 @@ export default async (
) =>
// rome-ignore lint/suspicious/noAsyncPromiseExecutor: FIXME
new Promise<Note>(async (res, rej) => {
const dontFederateInitially =
data.localOnly || data.visibility === "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.)