Skip to content

Commit

Permalink
Fix condition of noteSearchableScope (#14325)
Browse files Browse the repository at this point in the history
  • Loading branch information
tai-cha authored Jul 30, 2024
1 parent 6bd46e7 commit b359e3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/backend/src/core/entities/MetaEntityService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export class MetaEntityService {

mediaProxy: this.config.mediaProxy,
enableUrlPreview: instance.urlPreviewEnabled,
noteSearchableScope: this.config.meilisearch == null || this.config.meilisearch.scope === 'local' ? 'local' : 'global',
noteSearchableScope: (this.config.meilisearch == null || this.config.meilisearch.scope !== 'local') ? 'global' : 'local',
};

return packed;
Expand Down

0 comments on commit b359e3c

Please sign in to comment.