feat: ✨ searchFilters meta property
This commit is contained in:
parent
8bd8c7532b
commit
eda82780de
3 changed files with 8 additions and 2 deletions
|
@ -323,7 +323,7 @@ export const meta = {
|
||||||
optional: false,
|
optional: false,
|
||||||
nullable: false,
|
nullable: false,
|
||||||
},
|
},
|
||||||
elasticsearch: {
|
searchFilters: {
|
||||||
type: "boolean",
|
type: "boolean",
|
||||||
optional: false,
|
optional: false,
|
||||||
nullable: false,
|
nullable: false,
|
||||||
|
@ -521,7 +521,7 @@ export default define(meta, paramDef, async (ps, me) => {
|
||||||
recommendedTimeline: !instance.disableRecommendedTimeline,
|
recommendedTimeline: !instance.disableRecommendedTimeline,
|
||||||
globalTimeLine: !instance.disableGlobalTimeline,
|
globalTimeLine: !instance.disableGlobalTimeline,
|
||||||
emailRequiredForSignup: instance.emailRequiredForSignup,
|
emailRequiredForSignup: instance.emailRequiredForSignup,
|
||||||
elasticsearch: config.elasticsearch ? true : false,
|
searchFilters: config.meilisearch ? true : false,
|
||||||
hcaptcha: instance.enableHcaptcha,
|
hcaptcha: instance.enableHcaptcha,
|
||||||
recaptcha: instance.enableRecaptcha,
|
recaptcha: instance.enableRecaptcha,
|
||||||
objectStorage: instance.useObjectStorage,
|
objectStorage: instance.useObjectStorage,
|
||||||
|
|
|
@ -82,6 +82,9 @@ const nodeinfo2 = async () => {
|
||||||
disableRecommendedTimeline: meta.disableRecommendedTimeline,
|
disableRecommendedTimeline: meta.disableRecommendedTimeline,
|
||||||
disableGlobalTimeline: meta.disableGlobalTimeline,
|
disableGlobalTimeline: meta.disableGlobalTimeline,
|
||||||
emailRequiredForSignup: meta.emailRequiredForSignup,
|
emailRequiredForSignup: meta.emailRequiredForSignup,
|
||||||
|
searchFilters: config.meilisearch ? true : false,
|
||||||
|
postEditing: meta.experimentalFeatures?.postEditing || false,
|
||||||
|
postImports: meta.experimentalFeatures?.postImports || false,
|
||||||
enableHcaptcha: meta.enableHcaptcha,
|
enableHcaptcha: meta.enableHcaptcha,
|
||||||
enableRecaptcha: meta.enableRecaptcha,
|
enableRecaptcha: meta.enableRecaptcha,
|
||||||
maxNoteTextLength: MAX_NOTE_TEXT_LENGTH,
|
maxNoteTextLength: MAX_NOTE_TEXT_LENGTH,
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import * as os from "@/os";
|
import * as os from "@/os";
|
||||||
import { i18n } from "@/i18n";
|
import { i18n } from "@/i18n";
|
||||||
import { mainRouter } from "@/router";
|
import { mainRouter } from "@/router";
|
||||||
|
// import { instance } from "@/instance";
|
||||||
|
|
||||||
export async function search() {
|
export async function search() {
|
||||||
// const searchOptions =
|
// const searchOptions =
|
||||||
|
@ -14,6 +15,8 @@ export async function search() {
|
||||||
// "filter:following => show results only from users you follow\n" +
|
// "filter:following => show results only from users you follow\n" +
|
||||||
// "filter:followers => show results only from followers\n";
|
// "filter:followers => show results only from followers\n";
|
||||||
|
|
||||||
|
// const searchFiltersAvailable = instance.searchFilters;
|
||||||
|
|
||||||
const { canceled, result: query } = await os.inputText({
|
const { canceled, result: query } = await os.inputText({
|
||||||
title: i18n.ts.search,
|
title: i18n.ts.search,
|
||||||
placeholder: i18n.ts.searchPlaceholder,
|
placeholder: i18n.ts.searchPlaceholder,
|
||||||
|
|
Loading…
Reference in a new issue