backend stuff lol
This commit is contained in:
@@ -19,7 +19,7 @@ export default (router, tpl) => {
|
||||
if(req.cookies.session)
|
||||
return res.reply({ body: "du bist schon eingeloggt lol" });
|
||||
res.reply({
|
||||
body: tpl.render("login")
|
||||
body: tpl.render("login", { theme: req.cookies.theme ?? "f0ck" })
|
||||
});
|
||||
});
|
||||
|
||||
@@ -103,7 +103,7 @@ export default (router, tpl) => {
|
||||
.select("items.id", "items.username", "tags.tag")
|
||||
.leftJoin("tags_assign", "tags_assign.tag_id", "tags.id")
|
||||
.leftJoin("items", "items.id", "tags_assign.item_id")
|
||||
.where("tags.tag", "regexp", tag);
|
||||
.where("tags.tag", "like", '%'+tag+'%');
|
||||
|
||||
ret = search(rows, tag);
|
||||
}
|
||||
|
Reference in New Issue
Block a user