mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-07 05:36:08 +08:00
fix: /nowcoder/discuss remove query part of url (#4950)
This commit is contained in:
@@ -29,7 +29,7 @@ module.exports = async (ctx) => {
|
||||
const out = await Promise.all(
|
||||
list.map(async (info) => {
|
||||
const title = info.title || 'tzgg';
|
||||
const itemUrl = url.resolve(host, info.link);
|
||||
const itemUrl = url.resolve(host, info.link).replace(new RegExp('^(.*)[?](.*)$'), '$1');
|
||||
|
||||
const cache = await ctx.cache.get(itemUrl);
|
||||
if (cache) {
|
||||
|
||||
Reference in New Issue
Block a user