lib/twitter/user.rb in twitter-5.9.0 vs lib/twitter/user.rb in twitter-5.10.0
- old
+ new
@@ -87,10 +87,10 @@
# @return [String] The URL to the user's website.
def website
if website_urls?
website_urls.first.expanded_url
- elsif @attrs[:url]
+ else
Addressable::URI.parse(@attrs[:url])
end
end
memoize :website