]> git.mxchange.org Git - friendica.git/commitdiff
Force correct string casting for BaseUrl
authorPhilipp <admin@philipp.info>
Sun, 19 Mar 2023 10:21:17 +0000 (11:21 +0100)
committerPhilipp <admin@philipp.info>
Sun, 19 Mar 2023 10:21:17 +0000 (11:21 +0100)
src/Model/Profile.php

index b30cca8a6e8568fa74cf4dabfbf1a4288ea08bd3..e2857947c0fcf56f34658efbcfb584195fb04d8a 100644 (file)
@@ -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 {