Skip to content

Node.js based forum software built for the modern web

fix: handle actor assertion failure if mocked profile does not have a fullname

Julian Lam338c568c9919
diff --git a/src/activitypub/actors.js b/src/activitypub/actors.js
index 10de404c66..11c0d87128 100644
--- a/src/activitypub/actors.js
+++ b/src/activitypub/actors.js
@@ -114,7 +114,7 @@ Actors.assert = async (ids, options = {}) => {
memo.handleAdd[profile.username.toLowerCase()] = profile.uid;
}
- if (fullname !== profile.fullname) {
+ if (profile.fullname && fullname !== profile.fullname) {
if (uidsForCurrent[idx] !== 0) {
memo.searchRemove.push(['ap.name:sorted', `${fullname.toLowerCase()}:${profile.uid}`]);
}