]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/RemoteFollow.php
Merge remote-tracking branch 'upstream/develop' into api4
[friendica.git] / src / Module / RemoteFollow.php
index df67e60c65a6be5326be53f95a89090e0092e62b..6fedc139317377b5427a554bfa752137b7eb8265 100644 (file)
@@ -42,9 +42,9 @@ class RemoteFollow extends BaseModule
 {
        static $owner;
 
-       public static function init()
+       public function init()
        {
-               self::$owner = User::getOwnerDataByNick(static::$parameters['profile']);
+               self::$owner = User::getOwnerDataByNick($this->parameters['profile']);
                if (!self::$owner) {
                        throw new HTTPException\NotFoundException(DI::l10n()->t('User not found.'));
                }
@@ -52,7 +52,7 @@ class RemoteFollow extends BaseModule
                DI::page()['aside'] = Widget\VCard::getHTML(self::$owner);
        }
 
-       public static function post()
+       public function post()
        {
                if (!empty($_POST['cancel']) || empty($_POST['dfrn_url'])) {
                        DI::baseUrl()->redirect();
@@ -96,7 +96,7 @@ class RemoteFollow extends BaseModule
                System::externalRedirect($follow_link);
        }
 
-       public static function content()
+       public function content(): string
        {
                if (empty(self::$owner)) {
                        return '';
@@ -115,7 +115,7 @@ class RemoteFollow extends BaseModule
                        '$submit'        => DI::l10n()->t('Submit Request'),
                        '$cancel'        => DI::l10n()->t('Cancel'),
 
-                       '$request'       => 'remote_follow/' . static::$parameters['profile'],
+                       '$request'       => 'remote_follow/' . $this->parameters['profile'],
                        '$name'          => self::$owner['name'],
                        '$myaddr'        => Profile::getMyURL(),
                ]);