fix: 🚑 proper conditional
I need sleep... or coffee
This commit is contained in:
parent
cf8a733927
commit
ced8f56e34
1 changed files with 1 additions and 1 deletions
|
@ -806,7 +806,7 @@ async function insertNote(
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function index(note: Note, reindexing: boolean): Promise<void> {
|
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) {
|
if (config.elasticsearch && es) {
|
||||||
es.index({
|
es.index({
|
||||||
|
|
Loading…
Reference in a new issue