This commit is contained in:
ashley 2024-10-24 13:55:49 +00:00
parent 1cde1c23ef
commit 3872e7cb64

View file

@ -155,7 +155,7 @@ module.exports = function (app, config, renderTemplate) {
let searchUrl; let searchUrl;
if (req.query.from === 'hashtag') { if (req.query.from === 'hashtag') {
searchUrl = `/hashtag/${encodeURIComponent(query)}`; searchUrl = `${config.invapi}/hashtag/${query}`;
} else { } else {
searchUrl = `${config.invapi}/search?q=${encodeURIComponent(query)}&page=${encodeURIComponent(continuation)}&date=${date}&type=${type}&duration=${duration}&sort=${sort}&hl=en+gb`; searchUrl = `${config.invapi}/search?q=${encodeURIComponent(query)}&page=${encodeURIComponent(continuation)}&date=${date}&type=${type}&duration=${duration}&sort=${sort}&hl=en+gb`;
} }