diff options
author | pluralcafe-docker <git@plural.cafe> | 2019-01-16 19:42:48 +0000 |
---|---|---|
committer | pluralcafe-docker <git@plural.cafe> | 2019-01-16 19:42:48 +0000 |
commit | d899138556513c8a5fa3397606ecc4752b7c6785 (patch) | |
tree | 043d220748575a444b8628d8c4bf2e5225a92a00 /app/services | |
parent | a6e0ff72f552dc172c18f5a10bbca071b067ab51 (diff) | |
parent | fb7ec403227690f897a9a693f2461b94bf7e2582 (diff) |
Merge branch 'master' into production
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 |