1
0
Fork 0
mirror of https://codeberg.org/ashley/poke.git synced 2024-11-17 01:14:38 -05:00
This commit is contained in:
ashley 2024-10-24 14:09:30 +00:00
parent 7ed5e35be8
commit b601d2354e

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 = `${config.invapi}/hashtag/${query}`; searchUrl = `${config.invapi}/hashtag/${query}&hl=en-gb`;
} 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`;
} }