]> git.mxchange.org Git - friendica.git/blobdiff - mod/ignored.php
Add Theme::getAllowedList method
[friendica.git] / mod / ignored.php
index 4f14119fef876d792e9b3f1e684139a09fb9812f..64edf6e151c17d7a6dac97ee727259d016ef6883 100644 (file)
@@ -1,27 +1,26 @@
 <?php
 
 use Friendica\App;
-use Friendica\Core\System;
 use Friendica\Database\DBA;
 use Friendica\Model\Item;
 
 function ignored_init(App $a)
 {
        if (!local_user()) {
-               killme();
+               exit();
        }
 
        if ($a->argc > 1) {
                $message_id = intval($a->argv[1]);
        }
 
-       if (!$message_id) {
-               killme();
+       if (empty($message_id)) {
+               exit();
        }
 
        $thread = Item::selectFirstThreadForUser(local_user(), ['uid', 'ignored'], ['iid' => $message_id]);
        if (!DBA::isResult($thread)) {
-               killme();
+               exit();
        }
 
        // Numeric values are needed for the json output further below
@@ -49,5 +48,5 @@ function ignored_init(App $a)
        // the json doesn't really matter, it will either be 0 or 1
 
        echo json_encode($ignored);
-       killme();
+       exit();
 }