mirror of
https://github.com/PretendoNetwork/friends.git
synced 2026-10-02 14:58:05 -05:00
Added 100 result limit to friendlist query
This commit is contained in:
@@ -15,7 +15,7 @@ import (
|
||||
func GetUserFriendList(pid uint32) []*nexproto.FriendInfo {
|
||||
friendList := make([]*nexproto.FriendInfo, 0)
|
||||
|
||||
rows, err := database.Postgres.Query(`SELECT user2_pid, date FROM wiiu.friendships WHERE user1_pid=$1 AND active=true`, pid)
|
||||
rows, err := database.Postgres.Query(`SELECT user2_pid, date FROM wiiu.friendships WHERE user1_pid=$1 AND active=true LIMIT 100`, pid)
|
||||
if err != nil {
|
||||
globals.Logger.Critical(err.Error())
|
||||
return friendList
|
||||
|
||||
Reference in New Issue
Block a user