]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/diary_entries_controller.rb
Install endpoint listeners using enable/disable methods
[rails.git] / app / controllers / diary_entries_controller.rb
index 1f47e25880e38f74149fa48b3036aa6ae423958e..dd7efc7cacf3c359e21a28d32aed1b19357b6674 100644 (file)
@@ -70,7 +70,9 @@ class DiaryEntriesController < ApplicationController
       @title = t ".title", :user => params[:display_name], :title => @entry.title
       @opengraph_properties = {
         "og:image" => @entry.body.image,
-        "og:image:alt" => @entry.body.image_alt
+        "og:image:alt" => @entry.body.image_alt,
+        "og:description" => @entry.body.description,
+        "article:published_time" => @entry.created_at.xmlschema
       }
       @comments = can?(:unhide, DiaryComment) ? @entry.comments : @entry.visible_comments
     else