[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")
|
document.Links.Any(a => (a.GetAttribute("rel")?.Contains("me")
|
||||||
?? false)
|
?? false)
|
||||||
&& a.GetAttribute("href") == profileUrl
|
&& a.GetAttribute("href") == profileUrl
|
||||||
|| user.Uri != null
|
|| a.GetAttribute("href") == user.GetUriOrPublicUri(instance.Value));
|
||||||
&& a.GetAttribute("href") == user.Uri);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bgDbContext.Update(bgUser.UserProfile);
|
bgDbContext.Update(bgUser.UserProfile);
|
||||||
|
|
Loading…
Add table
Reference in a new issue