Bugfix on viewing other users friends and relationship booleans

This commit is contained in:
Noah Petherbridge 2023-10-23 00:04:25 -07:00
parent a97ed4562e
commit 47a4ebb0ad
3 changed files with 2 additions and 5 deletions

View File

@ -65,9 +65,6 @@ func UserFriends() http.HandlerFunc {
return
}
// Inject relationship booleans.
models.SetUserRelationships(currentUser, friends)
var vars = map[string]interface{}{
"User": user,
"IsSelf": isSelf,

View File

@ -390,7 +390,7 @@ func PaginateOtherUserFriends(currentUser *User, user *User, pager *Pagination)
userIDs = append(userIDs, friend.TargetUserID)
}
return GetUsers(user, userIDs)
return GetUsers(currentUser, userIDs)
}
// GetFriendRequests returns all pending friend requests for a user.