]> git.openstreetmap.org Git - rails.git/blobdiff - app/helpers/open_graph_helper.rb
Make select all checkbox on users list work with turbo
[rails.git] / app / helpers / open_graph_helper.rb
index dbd20446295d76a556d10a28481e26eb40a7e039..cde848e5d13762ac718431632aaf44c597c3bf54 100644 (file)
@@ -7,9 +7,11 @@ module OpenGraphHelper
       "og:title" => title || t("layouts.project_name.title"),
       "og:type" => "website",
       "og:url" => url_for(:only_path => false),
-      "og:description" => t("layouts.intro_text")
+      "og:description" => properties["og:description"] || t("layouts.intro_text")
     }.merge(
       opengraph_image_properties(properties)
+    ).merge(
+      properties.slice("article:published_time")
     )
 
     safe_join(tags.map do |property, content|