Skip to content

Commit

Permalink
Merge pull request #1319 from Nexmo/add-guard-clause-for-thumbnail
Browse files Browse the repository at this point in the history
FIX: addressable guard clause for thumbnail + bump Station Version v0…
  • Loading branch information
marcoranieri authored Mar 11, 2022
2 parents 7fb55e6 + 5265015 commit 6eb867f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/nexmo_developer/app/models/blog/blogpost.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/nexmo_developer/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module NexmoDeveloper
VERSION = '0.1.4'.freeze
VERSION = '0.1.5'.freeze
end

0 comments on commit 6eb867f

Please sign in to comment.