yusuketk před 6 roky
rodič
revize
b25b1555ab
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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;