Skip to content

Node.js based forum software built for the modern web

fix: don't send null into filter:parse.raw

Barış Soner Uşaklıeb50f8207304
diff --git a/src/categories/data.js b/src/categories/data.js
index fa8d70ff30..e45252f47d 100644
--- a/src/categories/data.js
+++ b/src/categories/data.js
@@ -152,7 +152,7 @@ async function modifyCategories(categories, fields) {
}
if (hasField('description') && category.cid !== -1) {
- category.descriptionParsed = await plugins.hooks.fire('filter:parse.raw', category.description);
+ category.descriptionParsed = await plugins.hooks.fire('filter:parse.raw', category.description || '');
}
}));
}