]> git.mxchange.org Git - friendica.git/blobdiff - mod/manage.php
Issue 7285: Perform duplicate check for item URI also with AP
[friendica.git] / mod / manage.php
index 4d0b65de1533e480dab6d1764910f5b440d9ac86..58590264a5ac25e61ec6d0fd6ece252e1f5e67c1 100644 (file)
@@ -2,12 +2,12 @@
 /**
  * @file mod/manage.php
  */
+
 use Friendica\App;
-use Friendica\Core\Authentication;
-use Friendica\Core\Addon;
+use Friendica\Core\Hook;
 use Friendica\Core\L10n;
 use Friendica\Core\Renderer;
-use Friendica\Core\System;
+use Friendica\Core\Session;
 use Friendica\Database\DBA;
 
 function manage_post(App $a) {
@@ -109,14 +109,14 @@ function manage_post(App $a) {
                unset($_SESSION['sysmsg_info']);
        }
 
-       Authentication::setAuthenticatedSessionForUser($r[0], true, true);
+       Session::setAuthenticatedForUser($a, $r[0], true, true);
 
        if ($limited_id) {
                $_SESSION['submanage'] = $original_id;
        }
 
        $ret = [];
-       Addon::callHooks('home_init',$ret);
+       Hook::callAll('home_init',$ret);
 
        $a->internalRedirect('profile/' . $a->user['nickname'] );
        // NOTREACHED