fix: miniflux optional parameter

This commit is contained in:
DIYgod 2023-08-20 19:34:51 +01:00
parent b5ed31f4ca
commit 04529804ab
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -46,11 +46,11 @@ module.exports = async (ctx) => {
const feedsList = response.data;
const parameters = ctx.params.parameters
.split('&')
?.split('&')
.map((parameter) => set(parameter))
.join('');
if (parameters !== '') {
if (parameters) {
for (const item of feedsList) {
if (categories.length && feeds.length) {
const categoryTitle = item.category.title.toLowerCase();