mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-16 19:50:01 +08:00
@@ -2102,7 +2102,7 @@ type,必选,目前支持两种,`hot` 代表热门游记,`latest` 代表
|
|||||||
|
|
||||||
#### 全国气象预警
|
#### 全国气象预警
|
||||||
|
|
||||||
举例: <(https://rsshub.app/weatherAlarm>
|
举例: <https://rsshub.app/weatherAlarm>
|
||||||
|
|
||||||
路由: `/weatherAlarm`
|
路由: `/weatherAlarm`
|
||||||
|
|
||||||
@@ -2123,3 +2123,4 @@ type,分类
|
|||||||
| Trending | Most stars | All |
|
| Trending | Most stars | All |
|
||||||
| -------- | ---------- | --- |
|
| -------- | ---------- | --- |
|
||||||
| trending | starred | all |
|
| trending | starred | all |
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ module.exports = async (ctx, next) => {
|
|||||||
if (ctx.state.data && ctx.query && (ctx.query.filter || ctx.query.filter_title || ctx.query.filter_description)) {
|
if (ctx.state.data && ctx.query && (ctx.query.filter || ctx.query.filter_title || ctx.query.filter_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.filter && !title.match(ctx.query.filter) && !description.match(ctx.query.filter)) ||
|
(ctx.query.filter && !title.match(ctx.query.filter) && !description.match(ctx.query.filter)) ||
|
||||||
(ctx.query.filter_title && !title.match(ctx.query.filter_title)) ||
|
(ctx.query.filter_title && !title.match(ctx.query.filter_title)) ||
|
||||||
|
|||||||
Reference in New Issue
Block a user