]> git.mxchange.org Git - friendica.git/blobdiff - mod/like.php
Move user tombstone activity data to ActivityPub\Transmitter
[friendica.git] / mod / like.php
index 97eaca163be125d9e24f3e30da6fe02172e7808d..7fc7b2b42c7ea2f0ca41b05e7d284923871f918b 100644 (file)
@@ -1,12 +1,9 @@
 <?php
 
 use Friendica\App;
-use Friendica\Core\System;
 use Friendica\Model\Item;
 use Friendica\Util\Strings;
 
-require_once 'include/items.php';
-
 function like_content(App $a) {
        if (!local_user() && !remote_user()) {
                return false;
@@ -27,10 +24,10 @@ function like_content(App $a) {
        }
 
        // See if we've been passed a return path to redirect to
-       $return_path = ((x($_REQUEST,'return')) ? $_REQUEST['return'] : '');
+       $return_path = defaults($_REQUEST, 'return', '');
 
        like_content_return($a, $return_path);
-       killme(); // NOTREACHED
+       exit();
 }
 
 
@@ -48,6 +45,4 @@ function like_content_return(App $a, $return_path) {
 
                $a->internalRedirect($return_path . $rand);
        }
-
-       killme();
 }