1
0
Fork 0

Force correct string casting for BaseUrl

This commit is contained in:
Philipp Holzer 2023-03-19 11:21:17 +01:00
parent c95e961683
commit 29e4f0ea9a
Signed by: nupplaPhil
GPG key ID: 24A7501396EB5432

View file

@ -334,7 +334,7 @@ class Profile
if (!$local_user_is_self) { if (!$local_user_is_self) {
if (!$visitor_is_authenticated) { if (!$visitor_is_authenticated) {
// Remote follow is only available for local profiles // 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'; $follow_link = 'profile/' . $profile['nickname'] . '/remote_follow';
} }
} else { } else {