lib/onebox/engine/twitter_status_onebox.rb in onebox-1.9.10 vs lib/onebox/engine/twitter_status_onebox.rb in onebox-1.9.11
- old
+ new
@@ -57,10 +57,10 @@
end
end
def tweet
if twitter_api_credentials_present?
- client.prettify_tweet(raw)
+ client.prettify_tweet(raw)&.strip
else
twitter_data[:description].gsub(/“(.+?)”/im) { $1 } if twitter_data[:description]
end
end