From f1e72255f1075bdfce58e36448a38f4560c71451 Mon Sep 17 00:00:00 2001 From: Hugo Sales Date: Mon, 30 Mar 2020 15:02:22 +0000 Subject: [PATCH] [DATABASE] Removed calls to common_config --- src/Entity/Notice.php | 7 ++++--- src/Entity/Profile.php | 9 ++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Entity/Notice.php b/src/Entity/Notice.php index 78d43a6b50..87d76b2557 100644 --- a/src/Entity/Notice.php +++ b/src/Entity/Notice.php @@ -85,9 +85,10 @@ class Notice ], ]; - if (common_config('search', 'type') == 'fulltext') { - $def['fulltext indexes'] = ['content' => ['content']]; - } + // TODO + // if (common_config('search', 'type') == 'fulltext') { + // $def['fulltext indexes'] = ['content' => ['content']]; + // } return $def; } diff --git a/src/Entity/Profile.php b/src/Entity/Profile.php index f1a0485174..9ddf357e4c 100644 --- a/src/Entity/Profile.php +++ b/src/Entity/Profile.php @@ -64,11 +64,10 @@ class Profile ], ]; - // Add a fulltext index - - if (common_config('search', 'type') == 'fulltext') { - $def['fulltext indexes'] = ['nickname' => ['nickname', 'fullname', 'location', 'bio', 'homepage']]; - } + // TODO + // if (common_config('search', 'type') == 'fulltext') { + // $def['fulltext indexes'] = ['nickname' => ['nickname', 'fullname', 'location', 'bio', 'homepage']]; + // } return $def; }