diff options
author | ThibG <thib@sitedethib.com> | 2019-01-16 16:28:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-16 16:28:38 +0100 |
commit | 530d29148ca0c5bf29f6fa516b1ef4f91d95894b (patch) | |
tree | e074e7b778e973b12e754d939cc5e2805eb012d6 /app/services | |
parent | 077639c27409f897e87522dd18a51801b6cbc40d (diff) | |
parent | 5684cd090caec27729d78c204911348a0cf62cbf (diff) |
Merge pull request #887 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/fetch_oembed_service.rb | 2 |
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 |