Skip to content

Node.js based forum software built for the modern web

fix: sometimes summary is null/undefined

Barış Soner Uşaklı65364bfa0f62
diff --git a/src/activitypub/mocks.js b/src/activitypub/mocks.js
index f9995b3b72..5268dd1c01 100644
--- a/src/activitypub/mocks.js
+++ b/src/activitypub/mocks.js
@@ -191,7 +191,7 @@ Mocks.profile = async (actors) => {
const iconBackgrounds = await user.getIconBackgrounds();
let bgColor = Array.prototype.reduce.call(preferredUsername, (cur, next) => cur + next.charCodeAt(), 0);
bgColor = iconBackgrounds[bgColor % iconBackgrounds.length];
-
+ summary = summary || '';
// Replace emoji in summary
if (tag && Array.isArray(tag)) {
tag