yusuketk 5 лет назад
Родитель
Сommit
b25b1555ab
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/server/models/user.js

+ 1 - 1
src/server/models/user.js

@@ -258,7 +258,7 @@ module.exports = function(crowi) {
     if (this.image != null) {
       return this.image;
     }
-    if (this.imageAttachment != null && this.imageAttachment.id != null) {
+    if (this.imageAttachment != null && this.imageAttachment._id != null) {
       const Attachment = crowi.model('Attachment');
       const imageAttachment = await Attachment.findById(this.imageAttachment);
       return imageAttachment.filePathProxied;