mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-16 02:42:57 +08:00
@@ -16,7 +16,7 @@ module.exports = async (ctx, next) => {
|
|||||||
if (ctx.state.data && ctx.query && (ctx.query.filterout || ctx.query.filterout_title || ctx.query.filterout_description)) {
|
if (ctx.state.data && ctx.query && (ctx.query.filterout || ctx.query.filterout_title || ctx.query.filterout_description)) {
|
||||||
ctx.state.data.item = ctx.state.data.item.filter((item) => {
|
ctx.state.data.item = ctx.state.data.item.filter((item) => {
|
||||||
const title = item.title;
|
const title = item.title;
|
||||||
const description = item.description;
|
const description = item.description || title;
|
||||||
return (
|
return (
|
||||||
(ctx.query.filterout && !title.match(ctx.query.filterout) && !description.match(ctx.query.filterout)) ||
|
(ctx.query.filterout && !title.match(ctx.query.filterout) && !description.match(ctx.query.filterout)) ||
|
||||||
(ctx.query.filterout_title && !title.match(ctx.query.filterout_title)) ||
|
(ctx.query.filterout_title && !title.match(ctx.query.filterout_title)) ||
|
||||||
|
|||||||
Reference in New Issue
Block a user