mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-09 14:40:23 +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(
|
const out = await Promise.all(
|
||||||
list.map(async (info) => {
|
list.map(async (info) => {
|
||||||
const title = info.title || 'tzgg';
|
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);
|
const cache = await ctx.cache.get(itemUrl);
|
||||||
if (cache) {
|
if (cache) {
|
||||||
|
|||||||
Reference in New Issue
Block a user