mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-17 04:34:38 -05:00
fix some issues on the search smart descs
This commit is contained in:
parent
38b4df0f79
commit
8b923f3d4c
1 changed files with 2 additions and 3 deletions
|
@ -202,7 +202,6 @@ app.get("/watch", async function (req, res) {
|
||||||
|
|
||||||
if (!data.comments) inv_comments = "Disabled";
|
if (!data.comments) inv_comments = "Disabled";
|
||||||
|
|
||||||
|
|
||||||
if (!api.video(v).b) {
|
if (!api.video(v).b) {
|
||||||
var nnn = "";
|
var nnn = "";
|
||||||
var badges = "";
|
var badges = "";
|
||||||
|
@ -427,14 +426,14 @@ app.get("/search", async (req, res) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const summary = await wiki
|
const summary = await wiki
|
||||||
.summary(query + "")
|
.summary(query + " ")
|
||||||
.then((summary_) => (summary_.title !== "Not found." ? summary_ : "none"));
|
.then((summary_) => (summary_.title !== "Not found." ? summary_ : "none"));
|
||||||
|
|
||||||
renderTemplate(res, req, "search.ejs", {
|
renderTemplate(res, req, "search.ejs", {
|
||||||
j,
|
j,
|
||||||
continuation,
|
continuation,
|
||||||
q: query,
|
q: query,
|
||||||
summary
|
summary,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue