]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/diary_entries_controller.rb
Merge remote-tracking branch 'upstream/pull/5072'
[rails.git] / app / controllers / diary_entries_controller.rb
index a8fc4180835d881745108263787d62d12faf7af4..dd7efc7cacf3c359e21a28d32aed1b19357b6674 100644 (file)
@@ -71,7 +71,8 @@ class DiaryEntriesController < ApplicationController
       @opengraph_properties = {
         "og:image" => @entry.body.image,
         "og:image:alt" => @entry.body.image_alt,
       @opengraph_properties = {
         "og:image" => @entry.body.image,
         "og:image:alt" => @entry.body.image_alt,
-        "og:description" => @entry.body.description
+        "og:description" => @entry.body.description,
+        "article:published_time" => @entry.created_at.xmlschema
       }
       @comments = can?(:unhide, DiaryComment) ? @entry.comments : @entry.visible_comments
     else
       }
       @comments = can?(:unhide, DiaryComment) ? @entry.comments : @entry.visible_comments
     else