expand inactive users when filter is applied

This commit is contained in:
metamuffin 2024-11-26 19:26:30 +01:00
parent 8e02438ea7
commit 15f4cc0c85
No known key found for this signature in database
GPG key ID: 718F9749DCDBD654

View file

@ -561,7 +561,7 @@ local function r_users(show_special, filter_negative)
end
for _, user in ipairs(users) do
user.firstchar = user.name:sub(1,1):lower()
user.firstchar = user.name:sub(1, 1):lower()
if user.firstchar ~= "@" and not contains(user.firstchar) then
table.insert(firstletters, user.firstchar)
end
@ -624,7 +624,9 @@ local function r_users(show_special, filter_negative)
return
end
print(format([[<details><summary>{+users.inactive_list}</summary><ul class="userlist">]]))
print(format([[
<details {oclass}><summary>{+users.inactive_list}</summary><ul class="userlist">
]], { oclass = query.prefix and "open" or "" }))
for _, user in ipairs(users) do
if user.time <= inactive_cutoff then show_user(user) end
end