mirror of
https://github.com/saicaca/fuwari.git
synced 2026-01-12 07:12:52 +01:00
feat: remove support for nested categories
This commit is contained in:
@@ -20,7 +20,7 @@ if (Array.isArray(tags) && tags.length > 0) {
|
||||
|
||||
if (Array.isArray(categories) && categories.length > 0) {
|
||||
posts = posts.filter(post =>
|
||||
Array.isArray(post.data.categories) && post.data.categories.some(category => categories.includes(category))
|
||||
post.data.category && categories.includes(post.data.category)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user