]> git.mxchange.org Git - friendica.git/blobdiff - mod/oexchange.php
add the homepage_verified field to the profile table and the owner-view
[friendica.git] / mod / oexchange.php
index 0970af2fdfbc230c1e86059a0d1320ba76696dd9..dd3809bc7d795889daa5ea8f2984ce64bb2f937f 100644 (file)
@@ -22,7 +22,6 @@
 use Friendica\App;
 use Friendica\Content\Text\BBCode;
 use Friendica\Content\Text\HTML;
-use Friendica\Core\Session;
 use Friendica\Core\System;
 use Friendica\DI;
 use Friendica\Module\Response;
@@ -98,7 +97,7 @@ function oexchange_init(App $a)
 
 function oexchange_content(App $a)
 {
-       if (!Session::getLocalUser()) {
+       if (!DI::userSession()->getLocalUserId()) {
                $o = Login::form();
                return $o;
        }
@@ -120,7 +119,7 @@ function oexchange_content(App $a)
 
        $post = [];
 
-       $post['profile_uid'] = Session::getLocalUser();
+       $post['profile_uid'] = DI::userSession()->getLocalUserId();
        $post['return'] = '/oexchange/done';
        $post['body'] = HTML::toBBCode($s);