[backend/api] Fix remote user profiles not loading

This commit is contained in:
Lilian 2024-12-18 02:06:46 +01:00
parent 6be761b2d3
commit f02c5ac2f1
No known key found for this signature in database

View file

@ -55,7 +55,7 @@ public class UserProfileRenderer(DatabaseContext db, IOptions<Config.InstanceSec
? Role.Moderator ? Role.Moderator
: Role.None; : Role.None;
var url = user.GetPublicUrl(instance.Value.WebDomain); var url = user.Uri ?? user.GetPublicUrl(instance.Value.WebDomain);
return new UserProfileResponse return new UserProfileResponse
{ {