]> git.mxchange.org Git - friendica.git/commitdiff
hopefully last feedback :)
authorPhilipp <admin@philipp.info>
Mon, 31 Oct 2022 23:09:30 +0000 (00:09 +0100)
committerPhilipp <admin@philipp.info>
Mon, 31 Oct 2022 23:09:30 +0000 (00:09 +0100)
src/Model/Profile.php
static/routes.config.php
view/theme/vier/theme.php

index 29f6b29376362f4e6645cf2dfbb6ecb79b7a8f4f..367680c42ce166d4f238f2a5fa979662570c9deb 100644 (file)
@@ -341,7 +341,7 @@ class Profile
                                if ($visitor_is_following) {
                                        $unfollow_link = $visitor_base_path . '/contact/unfollow?url=' . urlencode($profile_url) . '&auto=1';
                                } else {
-                                       $follow_link =  $visitor_base_path .'/contact/follow?url=' . urlencode($profile_url) . '&auto=1';
+                                       $follow_link = $visitor_base_path . '/contact/follow?url=' . urlencode($profile_url) . '&auto=1';
                                }
                        }
 
index 2b7f5b98da46237982e19757f77db42aa11cdd3a..6f05faee2d788de6536838035f1df06afb675775 100644 (file)
@@ -387,7 +387,7 @@ return [
                '/hidden'                     => [Module\Contact::class,           [R::GET]],
                '/ignored'                    => [Module\Contact::class,           [R::GET]],
                '/hovercard'                  => [Module\Contact\Hovercard::class, [R::GET]],
-               '/follow[/{url}]'             => [Module\Contact\Follow::class,    [R::GET, R::POST]],
+               '/follow'                     => [Module\Contact\Follow::class,    [R::GET, R::POST]],
                '/unfollow'                   => [Module\Contact\Unfollow::class,  [R::GET, R::POST]],
        ],
 
index bb647bc638accb7b011fcfe72019143ff1a736ba..28c5c3e86308fdb975c5595aa4ebf2a77fe40fed 100644 (file)
@@ -154,7 +154,7 @@ function vier_community_info()
                        foreach ($contacts as $contact) {
                                $entry = Renderer::replaceMacros($tpl, [
                                        '$id' => $contact['id'],
-                                       '$profile_link' => 'contact/follow/?url='.urlencode($contact['url']),
+                                       '$profile_link' => 'contact/follow?url=' . urlencode($contact['url']),
                                        '$photo' => Contact::getMicro($contact),
                                        '$alt_text' => $contact['name'],
                                ]);