mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-09 14:40:23 +08:00
fix filtering empty title, close #1808
This commit is contained in:
@@ -17,7 +17,7 @@ module.exports = async (ctx, next) => {
|
|||||||
// filter
|
// filter
|
||||||
if (ctx.state.data && ctx.query && (ctx.query.filter || ctx.query.filter_title || ctx.query.filter_description || ctx.query.filter_author)) {
|
if (ctx.state.data && ctx.query && (ctx.query.filter || ctx.query.filter_title || ctx.query.filter_description || ctx.query.filter_author)) {
|
||||||
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 || title;
|
const description = item.description || title;
|
||||||
const author = item.author || '';
|
const author = item.author || '';
|
||||||
return !(
|
return !(
|
||||||
|
|||||||
Reference in New Issue
Block a user