[backend/core] Set correct url for local mentions in user profile

This commit is contained in:
Laura Hausmann 2024-11-02 16:05:30 +01:00
parent 525bd02022
commit d9fabcb32c
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -55,7 +55,7 @@ public class UserProfileMentionsResolver(ActivityPub.UserResolver userResolver,
{
Host = p.Host,
Uri = p.Uri ?? p.GetPublicUri(config.Value),
Url = p.UserProfile?.Url,
Url = p.IsRemoteUser ? p.UserProfile?.Url : p.GetPublicUrl(config.Value),
Username = p.Username
})
.ToList();