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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// Inject relationship booleans.
|
|
||||||
models.SetUserRelationships(currentUser, friends)
|
|
||||||
|
|
||||||
var vars = map[string]interface{}{
|
var vars = map[string]interface{}{
|
||||||
"User": user,
|
"User": user,
|
||||||
"IsSelf": isSelf,
|
"IsSelf": isSelf,
|
||||||
|
|
|
@ -390,7 +390,7 @@ func PaginateOtherUserFriends(currentUser *User, user *User, pager *Pagination)
|
||||||
userIDs = append(userIDs, friend.TargetUserID)
|
userIDs = append(userIDs, friend.TargetUserID)
|
||||||
}
|
}
|
||||||
|
|
||||||
return GetUsers(user, userIDs)
|
return GetUsers(currentUser, userIDs)
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetFriendRequests returns all pending friend requests for a user.
|
// GetFriendRequests returns all pending friend requests for a user.
|
||||||
|
|
|
@ -93,4 +93,4 @@
|
||||||
{{end}}
|
{{end}}
|
||||||
</a>
|
</a>
|
||||||
</figure>
|
</figure>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user