From 8b923f3d4cac5497c145c153d90a8dfdd1108208 Mon Sep 17 00:00:00 2001 From: Ashley Date: Tue, 25 Oct 2022 21:54:53 +0200 Subject: [PATCH] fix some issues on the search smart descs --- server.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/server.js b/server.js index d3ab0879..5dfd8210 100644 --- a/server.js +++ b/server.js @@ -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, }); });