admin the second lol
All checks were successful
fetch npm modules / f0ck the f0cker (push) Successful in 18s

This commit is contained in:
Flummi
2024-06-24 08:41:46 +02:00
parent c79cca18cf
commit 058fe94fd1
6 changed files with 12 additions and 10 deletions

View File

@ -14,7 +14,7 @@ export default (router, tpl) => {
const user = decodeURIComponent(req.params.user);
const query = await db`
select "user".user, "user".created_at, user_options.*
select "user".user, "user".admin, "user".created_at, user_options.*
from user_options
left join "user" on "user".id = user_options.user_id
where "user".user ilike ${user}
@ -35,13 +35,15 @@ export default (router, tpl) => {
user: user,
mode: req.session.mode,
fav: false,
session: !!req.session
session: !!req.session,
limit: 99999999
});
const favs = await f0cklib.getf0cks({
user: user,
mode: req.session.mode,
fav: true,
session: !!req.session
session: !!req.session,
limit: 99999999
});
const count = {

View File

@ -8,13 +8,13 @@ export default (router, tpl) => {
try {
const list = await db`
select
"user".user,
"user".user, "user".admin,
coalesce("user_options".avatar, ${await lib.getDefaultAvatar()}) as avatar,
count(distinct(tag_id, item_id)) as count
from "tags_assign"
left join "user" on "user".id = "tags_assign".user_id
left join "user_options" on "user_options".user_id = "user".id
group by "user".user, "user_options".avatar
group by "user".user, "user_options".avatar, "user".admin
order by count desc
`;
const stats = await lib.countf0cks();