about summary refs log tree commit diff
path: root/app/services
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2019-01-16 14:20:07 +0100
committerThibaut Girka <thib@sitedethib.com>2019-01-16 14:20:07 +0100
commitdbe311f0e97a79f7530c7fe10bcee8b9c70b9904 (patch)
treeeb42d152d7204d4f109aee195037d82afd842b16 /app/services
parent077639c27409f897e87522dd18a51801b6cbc40d (diff)
parent5363c724fc33e441cd4be22ba0e757b1ac4fd401 (diff)
Merge branch 'master' into glitch-soc/merge-upstream
Conflicts:
- config/locales/simple_form.pl.yml
Diffstat (limited to 'app/services')
-rw-r--r--app/services/fetch_oembed_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/fetch_oembed_service.rb b/app/services/fetch_oembed_service.rb
index 9ddf9b13b..10176cfb9 100644
--- a/app/services/fetch_oembed_service.rb
+++ b/app/services/fetch_oembed_service.rb
@@ -43,7 +43,7 @@ class FetchOEmbedService
       res.code != 200 ? nil : res.body_with_limit
     end
 
-    validate(parse_for_format(body)) unless body.nil?
+    validate(parse_for_format(body)) if body.present?
   rescue Oj::ParseError, Ox::ParseError
     nil
   end