Bugfix on viewing other users friends and relationship booleans
This commit is contained in:
parent
a97ed4562e
commit
47a4ebb0ad
|
@ -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,
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user