fix: 🚑 proper conditional

I need sleep... or coffee
This commit is contained in:
ThatOneCalculator 2023-08-09 19:46:56 -07:00
parent cf8a733927
commit ced8f56e34
No known key found for this signature in database
GPG Key ID: 8703CACD01000000

View File

@ -806,7 +806,7 @@ async function insertNote(
}
export async function index(note: Note, reindexing: boolean): Promise<void> {
if (!note.text || note.visibility === "public") return;
if (!note.text || note.visibility !== "public") return;
if (config.elasticsearch && es) {
es.index({