From 338c568c9919b5209da14472da87a0856e864f89 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 13 Mar 2024 10:56:00 -0400 Subject: [PATCH] fix: handle actor assertion failure if mocked profile does not have a fullname --- src/activitypub/actors.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}`]); }