From a72a394f57a90f3c59e73701eeeaa7a89c2a53d5 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Mon, 1 Jan 2024 14:50:08 -0600 Subject: add note about privilege detection when returning user info --- src/slskd/Application.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/slskd/Application.cs b/src/slskd/Application.cs index d0e34880..29323938 100644 --- a/src/slskd/Application.cs +++ b/src/slskd/Application.cs @@ -1359,7 +1359,10 @@ namespace slskd { try { - var groupName = Users.GetGroup(username); + // note: users must first be watched or cached for leech and privilege detection to work. + // we are deliberately skipping it here; if the username is watched + // leech detection works and they get accurate info, if not, they won't + var groupName = Users.ResolveGroup(username); var group = Transfers.Uploads.Queue.GetGroupInfo(groupName); // forecast the position at which this user would enter the queue if they were to request -- cgit v1.2.3