1
0
Fork 0
mirror of https://codeberg.org/ashley/poke.git synced 2024-11-17 07:14:40 -05:00

fix some issues on the search smart descs

This commit is contained in:
Ashley 2022-10-25 21:54:53 +02:00
parent 2e5fe0574b
commit d85e6efb38

View file

@ -202,7 +202,6 @@ app.get("/watch", async function (req, res) {
if (!data.comments) inv_comments = "Disabled";
if (!api.video(v).b) {
var nnn = "";
var badges = "";
@ -427,14 +426,14 @@ app.get("/search", async (req, res) => {
}
const summary = await wiki
.summary(query + "")
.summary(query + " ")
.then((summary_) => (summary_.title !== "Not found." ? summary_ : "none"));
renderTemplate(res, req, "search.ejs", {
j,
continuation,
q: query,
summary
summary,
});
});