add comment_num/thumbup_num in message_list_api/message_type_list_api

Brightcells 9 ans auparavant
Parent
Commettre
b3b9639df8
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      message/models.py

+ 2 - 0
message/models.py

@@ -72,6 +72,8 @@ class UserMessageInfo(CreateUpdateMixin):
72 72
             'photo_id': self.photo_id,
73 73
             'photo_url': group_photo and group_photo.photo_url,
74 74
             'photo_thumbnail_url': group_photo and group_photo.photo_thumbnail_url,
75
+            'comment_num': group_photo and group_photo.comment_num,
76
+            'thumbup_num': group_photo and group_photo.thumbup_num,
75 77
             'msg_title': self.msg_title,
76 78
             'msg_content': self.msg_content,
77 79
             'read': self.read,