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