From fe36d1ca125a34d6320486e19aa1c7016c6f085c Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 22 Jun 2020 15:02:39 +0200 Subject: [PATCH] Don't try to send a mailbox message as an anonymous user --- www/common/migrate-user-object.js | 1 + 1 file changed, 1 insertion(+) diff --git a/www/common/migrate-user-object.js b/www/common/migrate-user-object.js index b13aacb1c..000744cc9 100644 --- a/www/common/migrate-user-object.js +++ b/www/common/migrate-user-object.js @@ -478,6 +478,7 @@ define([ store: store, }; var myData = Messaging.createData(userObject); + if (!myData.curvePublic) { return void done(); } Mailbox.sendTo(ctx, 'SAFE_LINKS_DEFAULT', { user: myData,