]> git.mxchange.org Git - friendica.git/commitdiff
Merge branch 'develop' into phpstan-level-1
authorArt4 <art4@wlabs.de>
Mon, 18 Nov 2024 21:45:42 +0000 (21:45 +0000)
committerArt4 <art4@wlabs.de>
Mon, 18 Nov 2024 21:45:42 +0000 (21:45 +0000)
1  2 
src/Module/BaseApi.php
src/Module/Item/Display.php
src/Module/Magic.php
src/Module/Profile/Photos.php
src/Module/Security/TwoFactor/Trust.php
src/Protocol/ActivityPub/Queue.php
src/Protocol/Feed.php
view/theme/frio/config.php

Simple merge
Simple merge
index c3b9a2b4db152b6bb4a6549f5b81150e36ca22d8,24e6374f5a2125732009e1256929d144715507fa..c06cbd6f4e858f2ad5cd13a27eb4a3a685ede670
@@@ -76,15 -80,18 +78,15 @@@ class Magic extends BaseModul
  
                $target = $dest ?: $addr;
  
 -              if ($addr ?: $dest) {
 -                      $contact = Contact::getByURL($addr ?: $dest);
 +              $contact = Contact::getByURL($addr ?: $dest);
 +              if ($contact === [] && $owa === 0) {
 +                      $this->logger->info('No contact record found, no oWA, redirecting to destination.', ['request' => $request, 'server' => $_SERVER, 'dest' => $dest]);
-                       $this->app->redirect($dest);
++                      $this->appHelper->redirect($dest);
                }
  
 -              if (empty($contact)) {
 -                      if (!$owa) {
 -                              $this->logger->info('No contact record found, no oWA, redirecting to destination.', ['request' => $request, 'server' => $_SERVER, 'dest' => $dest]);
 -                              $this->appHelper->redirect($dest);
 -                      }
 -              } else {
 +              if ($contact !== []) {
                        // Redirect if the contact is already authenticated on this site.
-                       if ($this->app->getContactId() && strpos($contact['nurl'], Strings::normaliseLink($this->baseUrl)) !== false) {
+                       if ($this->appHelper->getContactId() && strpos($contact['nurl'], Strings::normaliseLink($this->baseUrl)) !== false) {
                                $this->logger->info('Contact is already authenticated, redirecting to destination.', ['dest' => $dest]);
                                System::externalRedirect($dest);
                        }
@@@ -92,9 -99,9 +94,9 @@@
                        $this->logger->debug('Contact found', ['url' => $contact['url']]);
                }
  
 -              if (!$this->userSession->getLocalUserId() || !$owa) {
 +              if (!$this->userSession->getLocalUserId() || $owa === 0) {
                        $this->logger->notice('Not logged in or not OWA, redirecting to destination.', ['uid' => $this->userSession->getLocalUserId(), 'owa' => $owa, 'dest' => $dest]);
-                       $this->app->redirect($dest);
+                       $this->appHelper->redirect($dest);
                }
  
                $dest = Network::removeUrlParameter($dest, 'zid');
Simple merge
Simple merge
Simple merge
Simple merge