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

This commit is contained in:
Julian Lam
2024-03-13 10:56:00 -04:00
parent f7c8967ee2
commit 338c568c99

View File

@@ -114,7 +114,7 @@ Actors.assert = async (ids, options = {}) => {
memo.handleAdd[profile.username.toLowerCase()] = profile.uid; memo.handleAdd[profile.username.toLowerCase()] = profile.uid;
} }
if (fullname !== profile.fullname) { if (profile.fullname && fullname !== profile.fullname) {
if (uidsForCurrent[idx] !== 0) { if (uidsForCurrent[idx] !== 0) {
memo.searchRemove.push(['ap.name:sorted', `${fullname.toLowerCase()}:${profile.uid}`]); memo.searchRemove.push(['ap.name:sorted', `${fullname.toLowerCase()}:${profile.uid}`]);
} }