hide tags from the public

This commit is contained in:
Flummi
2022-05-21 16:39:24 +02:00
parent d0f8cb5acb
commit af4c48f351
3 changed files with 53 additions and 134 deletions

View File

@ -34,12 +34,14 @@ export default (router, tpl) => {
const f0cks = await f0cklib.getf0cks({
user: user,
mode: req.session.mode,
fav: false
fav: false,
session: !!req.session
});
const favs = await f0cklib.getf0cks({
user: user,
mode: req.session.mode,
fav: true
fav: true,
session: !!req.session
});
if('items' in f0cks)
@ -66,7 +68,8 @@ export default (router, tpl) => {
page: req.params.page,
itemid: req.params.itemid,
fav: req.params.mode == 'favs',
mode: req.session.mode
mode: req.session.mode,
session: !!req.session
});
if(!data.success) {
return res.reply({