diff --git a/lib/nexmo_developer/app/models/blog/blogpost.rb b/lib/nexmo_developer/app/models/blog/blogpost.rb index aa5d48ec2..3a576a659 100644 --- a/lib/nexmo_developer/app/models/blog/blogpost.rb +++ b/lib/nexmo_developer/app/models/blog/blogpost.rb @@ -50,6 +50,8 @@ def build_bucket_img_url_from_thumbnail require 'net/http' require 'addressable' + return DEFAULT_VONAGE_LOGO_URL if @thumbnail.empty? + @thumbnail = @thumbnail.gsub('/content/blog/') do |match| # gsub Netlify img urls "#{Blog::Blogpost::CLOUDFRONT_BLOG_URL}blogposts/#{match.gsub('/content/blog/', '')}" end diff --git a/lib/nexmo_developer/version.rb b/lib/nexmo_developer/version.rb index 1df637f52..cdd0e51cd 100644 --- a/lib/nexmo_developer/version.rb +++ b/lib/nexmo_developer/version.rb @@ -1,3 +1,3 @@ module NexmoDeveloper - VERSION = '0.1.4'.freeze + VERSION = '0.1.5'.freeze end