|
|
|
|
@ -136,7 +136,7 @@ const hideUserName = function(username, exportOperation) { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (!exportOperation.userNameTable[username]) { |
|
|
|
|
if (username === exportOperation.userData.username) { |
|
|
|
|
if (exportOperation.userData && username === exportOperation.userData.username) { |
|
|
|
|
exportOperation.userNameTable[username] = username; |
|
|
|
|
} else { |
|
|
|
|
exportOperation.userNameTable[username] = `User_${ (Object.keys(exportOperation.userNameTable).length + 1) }`; |
|
|
|
|
@ -474,6 +474,10 @@ const generateUserFile = function(exportOperation) { |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
const generateUserAvatarFile = function(exportOperation) { |
|
|
|
|
if (!exportOperation.userData) { |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const file = Avatars.findOneByName(exportOperation.userData.username); |
|
|
|
|
if (!file) { |
|
|
|
|
return; |
|
|
|
|
|