From f1c75e6a5460695025373ea42c890f9867939f61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonne=20Ha=C3=9F?= Date: Mon, 4 May 2015 19:31:50 +0200 Subject: [PATCH] Bump open_graph_reader It now returns the origin for a missing og:url --- Changelog.md | 1 + Gemfile | 2 +- Gemfile.lock | 4 ++-- config/initializers/open_graph_reader.rb | 1 + 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Changelog.md b/Changelog.md index 9e8bf2899..59d55038a 100644 --- a/Changelog.md +++ b/Changelog.md @@ -26,6 +26,7 @@ * Submit messages in conversations with Ctrl+Enter [#5910](https://github.com/diaspora/diaspora/pull/5910) * Support syntax highlighting for fenced code blocks [#5908](https://github.com/diaspora/diaspora/pull/5908) * Added link to diasporafoundation.org to invitation email [#5893](https://github.com/diaspora/diaspora/pull/5893) +* Gracefully handle missing `og:url`s [#5926](https://github.com/diaspora/diaspora/pull/5926) # 0.5.0.0 diff --git a/Gemfile b/Gemfile index d7fa979d5..5b6fa5c09 100644 --- a/Gemfile +++ b/Gemfile @@ -130,7 +130,7 @@ gem "redcarpet", "3.2.3" gem "twitter-text", "1.11.0" gem "roxml", "3.1.6" gem "ruby-oembed", "0.8.14" -gem "open_graph_reader", "0.5.0" +gem "open_graph_reader", "0.6.0" # Services diff --git a/Gemfile.lock b/Gemfile.lock index d1a9a1b7c..b8a91253f 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -437,7 +437,7 @@ GEM omniauth-oauth (~> 1.0) omniauth-wordpress (0.2.1) omniauth-oauth2 (~> 1.1.0) - open_graph_reader (0.5.0) + open_graph_reader (0.6.0) faraday (~> 0.9.0) nokogiri (~> 1.6) orm_adapter (0.5.0) @@ -763,7 +763,7 @@ DEPENDENCIES omniauth-tumblr (= 1.1) omniauth-twitter (= 1.0.1) omniauth-wordpress (= 0.2.1) - open_graph_reader (= 0.5.0) + open_graph_reader (= 0.6.0) pry pry-byebug pry-debundle diff --git a/config/initializers/open_graph_reader.rb b/config/initializers/open_graph_reader.rb index c23e874ba..f1ec34134 100644 --- a/config/initializers/open_graph_reader.rb +++ b/config/initializers/open_graph_reader.rb @@ -1,6 +1,7 @@ OpenGraphReader.configure do |config| config.synthesize_title = true config.synthesize_url = true + config.synthesize_full_url = true config.synthesize_image_url = true config.guess_datetime_format = true end