X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/43f544053738dbf84ca32941b65dc3c30251b22b..6d49bc6ebbe1ca3ae9b416e3b01fa80eb448cbd2:/app/helpers/open_graph_helper.rb?ds=sidebyside diff --git a/app/helpers/open_graph_helper.rb b/app/helpers/open_graph_helper.rb index dbd204462..cde848e5d 100644 --- a/app/helpers/open_graph_helper.rb +++ b/app/helpers/open_graph_helper.rb @@ -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|