Skip to content

Node.js based forum software built for the modern web

fix: #12673 fullname not defined in some remote actors

Julian Lamf662a60667d0
diff --git a/src/activitypub/actors.js b/src/activitypub/actors.js
index 327f6da42c..353e093571 100644
--- a/src/activitypub/actors.js
+++ b/src/activitypub/actors.js
@@ -162,7 +162,7 @@ Actors.assert = async (ids, options = {}) => {
}
if (profile.fullname && fullname !== profile.fullname) {
- if (uidsForCurrent[idx] !== 0) {
+ if (fullname && uidsForCurrent[idx] !== 0) {
memo.searchRemove.push(['ap.name:sorted', `${fullname.toLowerCase()}:${profile.uid}`]);
}