From baa97febef3d324980b5f60d8512aab6ca4e07a8 Mon Sep 17 00:00:00 2001 From: Philipp Date: Tue, 1 Nov 2022 00:09:30 +0100 Subject: [PATCH] hopefully last feedback :) --- src/Model/Profile.php | 2 +- static/routes.config.php | 2 +- view/theme/vier/theme.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Model/Profile.php b/src/Model/Profile.php index 29f6b29376..367680c42c 100644 --- a/src/Model/Profile.php +++ b/src/Model/Profile.php @@ -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'; } } diff --git a/static/routes.config.php b/static/routes.config.php index 2b7f5b98da..6f05faee2d 100644 --- a/static/routes.config.php +++ b/static/routes.config.php @@ -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]], ], diff --git a/view/theme/vier/theme.php b/view/theme/vier/theme.php index bb647bc638..28c5c3e863 100644 --- a/view/theme/vier/theme.php +++ b/view/theme/vier/theme.php @@ -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'], ]);