mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Adding ISO date to comments and replies at @secretsquirrel's request.
This commit is contained in:
parent
a97b27d567
commit
3ae86a7e14
1 changed files with 2 additions and 0 deletions
|
@ -937,6 +937,7 @@ class MCommentReply(mongo.EmbeddedDocument):
|
|||
reply = {
|
||||
'user_id': self.user_id,
|
||||
'publish_date': relative_timesince(self.publish_date),
|
||||
'date': self.publish_date,
|
||||
'comments': self.comments,
|
||||
}
|
||||
return reply
|
||||
|
@ -1185,6 +1186,7 @@ class MSharedStory(mongo.Document):
|
|||
'user_id': self.user_id,
|
||||
'comments': self.comments,
|
||||
'shared_date': relative_timesince(self.shared_date),
|
||||
'date': self.shared_date,
|
||||
'replies': [reply.to_json() for reply in self.replies],
|
||||
'liking_users': self.liking_users,
|
||||
'source_user_id': self.source_user_id,
|
||||
|
|
Loading…
Add table
Reference in a new issue