Facebook wants ISO8601 datetime format.

This commit is contained in:
Samuel Clay 2012-11-26 14:23:28 -08:00
parent ea917dcf1f
commit 8fad5de228
2 changed files with 2 additions and 1 deletions

View file

@ -413,6 +413,7 @@ def load_social_page(request, user_id, username=None, **kwargs):
active_story['image_url'] = active_story_db.image_sizes[0]['src']
active_story['tags'] = ', '.join(active_story_db.story_tags)
active_story['blurblog_permalink'] = active_story_db.blurblog_permalink()
active_story['iso8601'] = active_story_db.story_date.isoformat()
if active_story['story_feed_id']:
feed = Feed.get_by_id(active_story['story_feed_id'])
if feed:

View file

@ -20,7 +20,7 @@
<meta property="og:image" content="{{ active_story.image_url }}">
<meta property="og:title" content="{{ active_story.story_title }}">
<meta property="og:description" content="{{ active_story.story_content }}">
<meta property="article:published_time" content="{{ active_story.story_date }}">
<meta property="article:published_time" content="{{ active_story.iso8601 }}">
<meta property="article:author" content="{{ active_story.story_authors }}">
<meta property="article:tag" content="{{ active_story.tags }}">
{% endif %}