yusuketk 5 lat temu
rodzic
commit
b25b1555ab
1 zmienionych plików z 1 dodań i 1 usunięć
  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) {
     if (this.image != null) {
       return this.image;
       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 Attachment = crowi.model('Attachment');
       const imageAttachment = await Attachment.findById(this.imageAttachment);
       const imageAttachment = await Attachment.findById(this.imageAttachment);
       return imageAttachment.filePathProxied;
       return imageAttachment.filePathProxied;