Merge pull request #12915 from nupplaphil/bug/baseurl_profile

Force correct string casting for BaseUrl
This commit is contained in:
Michael Vogel 2023-03-19 12:10:51 +01:00 committed by GitHub
commit 9782c8e2ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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 {