X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FApp.php;h=5c74b1b539388750f7b2c8300351ac34a07795dd;hb=90897f36cab3540e76d0e290006a9dec3b2621d6;hp=772d273c521f7e1555a9e121b009a6cc0106bfaa;hpb=38a5358bfa646ae13a4a1a385741890fa88d9b7f;p=friendica.git diff --git a/src/App.php b/src/App.php index 772d273c52..5c74b1b539 100644 --- a/src/App.php +++ b/src/App.php @@ -34,6 +34,7 @@ use Friendica\Core\L10n; use Friendica\Core\System; use Friendica\Core\Theme; use Friendica\Database\Database; +use Friendica\Model\Contact; use Friendica\Model\Profile; use Friendica\Module\Special\HTTPException as ModuleHTTPException; use Friendica\Network\HTTPException; @@ -464,6 +465,11 @@ class App if (Core\Session::get('visitor_home') != $_GET["zrl"]) { Core\Session::set('my_url', $_GET['zrl']); Core\Session::set('authenticated', 0); + + $remote_contact = Contact::getByURL($_GET['zrl'], false, ['subscribe']); + if (!empty($remote_contact['subscribe'])) { + $_SESSION['remote_comment'] = $remote_contact['subscribe']; + } } Model\Profile::zrlInit($this);