yusuketk %!s(int64=6) %!d(string=hai) anos
pai
achega
b25b1555ab
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;