lib/jekyll-twitter-plugin.rb in jekyll-twitter-plugin-1.3.0 vs lib/jekyll-twitter-plugin.rb in jekyll-twitter-plugin-1.3.1
- old
+ new
@@ -105,10 +105,12 @@
def fetch
tweet_id = id_from_status_url(@status_url)
if tweet = find_tweet(tweet_id)
- @client.oembed tweet, @params
+ # To work around a 'bug' in the Twitter gem modifying our hash we pass in
+ # a copy otherwise our cache key is altered.
+ @client.oembed tweet, @params.dup
else
error
end
end