mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
fix: handle actor assertion failure if mocked profile does not have a fullname
This commit is contained in:
@@ -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}`]);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user