diff --git a/src/Model/Contact.php b/src/Model/Contact.php index 816c2a186..74534fc37 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -1214,7 +1214,7 @@ class Contact extends BaseObject } if (($contact['network'] == Protocol::DFRN) && !$contact['self'] && empty($contact['pending'])) { - $poke_link = System::baseUrl() . '/poke/?f=&c=' . $contact['id']; + $poke_link = System::baseUrl() . '/poke/?c=' . $contact['id']; } $contact_url = System::baseUrl() . '/contact/' . $contact['id']; diff --git a/src/Model/Profile.php b/src/Model/Profile.php index 4ca6ca66b..4261d62e7 100644 --- a/src/Model/Profile.php +++ b/src/Model/Profile.php @@ -1087,7 +1087,7 @@ class Profile $basepath = Contact::getBasepath($contact['url']); if ($basepath != $a->getBaseURL() && !strstr($dest, '/magic')) { - $magic_path = $basepath . '/magic' . '?f=&owa=1&dest=' . $dest . '&' . $addr_request; + $magic_path = $basepath . '/magic' . '?owa=1&dest=' . $dest . '&' . $addr_request; // We have to check if the remote server does understand /magic without invoking something $serverret = Network::curl($basepath . '/magic'); diff --git a/src/Module/Debug/Localtime.php b/src/Module/Debug/Localtime.php index 36eaa17ac..7af9cb8da 100644 --- a/src/Module/Debug/Localtime.php +++ b/src/Module/Debug/Localtime.php @@ -39,7 +39,7 @@ class Localtime extends BaseModule $output .= '
' . L10n::t('Converted localtime: %s', $app->data['mod-localtime']) . '
'; } - $output .= ''; diff --git a/src/Module/Magic.php b/src/Module/Magic.php index 0722da3cd..4cb3dc732 100644 --- a/src/Module/Magic.php +++ b/src/Module/Magic.php @@ -97,8 +97,7 @@ class Magic extends BaseModule } else { $token = $j['token']; } - $x = strpbrk($dest, '?&'); - $args = (($x) ? '&owt=' . $token : '?f=&owt=' . $token); + $args = (strpbrk($dest, '?&') ? '&' : '?') . 'owt=' . $token; Logger::info('Redirecting', ['path' => $dest . $args]); System::externalRedirect($dest . $args); diff --git a/src/Protocol/Diaspora.php b/src/Protocol/Diaspora.php index 9e074e8a9..587b34c3f 100644 --- a/src/Protocol/Diaspora.php +++ b/src/Protocol/Diaspora.php @@ -1608,7 +1608,7 @@ class Diaspora } if (self::isRedmatrix($contact["url"])) { - return $contact["url"] . "/?f=&mid=" . $guid; + return $contact["url"] . "/?mid=" . $guid; } if ($parent_guid != '') {