Skip to content

Commit

Permalink
Flickr comments should use 'published' rather than 'created'
Browse files Browse the repository at this point in the history
  • Loading branch information
kylewm committed Sep 5, 2015
1 parent 2d2afe4 commit d302805
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion granary/flickr.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ def comment_to_object(self, comment, photo_id):
'id': self.tag_uri(comment.get('id')),
'inReplyTo': [{'id': self.tag_uri(photo_id)}],
'content': comment.get('_content', ''),
'created': util.maybe_timestamp_to_rfc3339(comment.get('datecreate')),
'published': util.maybe_timestamp_to_rfc3339(comment.get('datecreate')),
'updated': util.maybe_timestamp_to_rfc3339(comment.get('datecreate')),
'author': {
'objectType': 'person',
Expand Down
2 changes: 1 addition & 1 deletion granary/test/test_flickr.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ def tag_uri(name):
'content': 'Love this!',
'id': tag_uri('4942564-5227922370-72157625845945286'),
'updated': '2011-01-17T18:24:03',
'created': '2011-01-17T18:24:03',
'published': '2011-01-17T18:24:03',
'url': 'https://www.flickr.com/photos/kindofblue115/5227922370/#comment72157625845945286',
'inReplyTo': [{
'id': tag_uri('5227922370'),
Expand Down

0 comments on commit d302805

Please sign in to comment.