Add display_name to jsonify of album and bookmark.

This commit is contained in:
voussoir 2021-05-02 18:35:15 -07:00
parent 89205ac24a
commit 3c299422d8
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -534,6 +534,7 @@ class Album(ObjectBase, GroupableMixin):
'description': self.description,
'title': self.title,
'created': self.created,
'display_name': self.display_name,
'thumbnail_photo': self.thumbnail_photo.id if self._thumbnail_photo else None,
'author': self.get_author().jsonify() if self.author_id else None,
}
@ -764,6 +765,7 @@ class Bookmark(ObjectBase):
'url': self.url,
'created': self.created,
'title': self.title,
'display_name': self.display_name,
}
return j