From ced8f56e340ed693bcd9513c1357c318042722aa Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Wed, 9 Aug 2023 19:46:56 -0700 Subject: [PATCH] fix: :ambulance: proper conditional I need sleep... or coffee --- packages/backend/src/services/note/create.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/services/note/create.ts b/packages/backend/src/services/note/create.ts index b7704946ff..a08e328893 100644 --- a/packages/backend/src/services/note/create.ts +++ b/packages/backend/src/services/note/create.ts @@ -806,7 +806,7 @@ async function insertNote( } export async function index(note: Note, reindexing: boolean): Promise { - if (!note.text || note.visibility === "public") return; + if (!note.text || note.visibility !== "public") return; if (config.elasticsearch && es) { es.index({