]> git.mxchange.org Git - friendica.git/blobdiff - mod/search.php
Added unavailable local profile AP issue to CHANGELOG
[friendica.git] / mod / search.php
index b40fe07157f233f3b3825a0ed3675e3e2c51e9f0..9a70bcac908d179d3512761284bd8dd64b431a17 100644 (file)
@@ -4,7 +4,6 @@
  */
 
 use Friendica\App;
-use Friendica\Content\Feature;
 use Friendica\Content\Nav;
 use Friendica\Content\Pager;
 use Friendica\Content\Text\HTML;
@@ -18,7 +17,6 @@ use Friendica\Database\DBA;
 use Friendica\Model\Item;
 use Friendica\Util\Strings;
 
-require_once 'include/conversation.php';
 require_once 'mod/dirfind.php';
 
 function search_saved_searches() {
@@ -103,7 +101,7 @@ function search_content(App $a) {
                System::httpExit(403,
                                ["title" => L10n::t("Public access denied."),
                                        "description" => L10n::t("Only logged in users are permitted to perform a search.")]);
-               killme();
+               exit();
                //notice(L10n::t('Public access denied.').EOL);
                //return;
        }
@@ -128,7 +126,7 @@ function search_content(App $a) {
                                System::httpExit(429,
                                                ["title" => L10n::t("Too Many Requests"),
                                                        "description" => L10n::t("Only one search per minute is permitted for not logged in users.")]);
-                               killme();
+                               exit();
                        }
                        Cache::set("remote_search:".$remote, json_encode(["time" => time(), "accesses" => $resultdata->accesses + 1]), Cache::HOUR);
                } else