[backend/services] Also check user URI for local users when verifying links
This commit is contained in:
parent
aa3262caea
commit
9d0cb44743
1 changed files with 1 additions and 2 deletions
|
@ -1204,8 +1204,7 @@ public class UserService(
|
|||
document.Links.Any(a => (a.GetAttribute("rel")?.Contains("me")
|
||||
?? false)
|
||||
&& a.GetAttribute("href") == profileUrl
|
||||
|| user.Uri != null
|
||||
&& a.GetAttribute("href") == user.Uri);
|
||||
|| a.GetAttribute("href") == user.GetUriOrPublicUri(instance.Value));
|
||||
}
|
||||
|
||||
bgDbContext.Update(bgUser.UserProfile);
|
||||
|
|
Loading…
Add table
Reference in a new issue