From 29e4f0ea9a61d12262447d32d783e62e335ed108 Mon Sep 17 00:00:00 2001 From: Philipp Date: Sun, 19 Mar 2023 11:21:17 +0100 Subject: [PATCH] Force correct string casting for BaseUrl --- src/Model/Profile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Profile.php b/src/Model/Profile.php index b30cca8a6e..e2857947c0 100644 --- a/src/Model/Profile.php +++ b/src/Model/Profile.php @@ -334,7 +334,7 @@ class Profile if (!$local_user_is_self) { if (!$visitor_is_authenticated) { // Remote follow is only available for local profiles - if (!empty($profile['nickname']) && strpos($profile_url, DI::baseUrl()) === 0) { + if (!empty($profile['nickname']) && strpos($profile_url, (string)DI::baseUrl()) === 0) { $follow_link = 'profile/' . $profile['nickname'] . '/remote_follow'; } } else { -- 2.39.5