Skip to content
Browse files

twitter profileUrl becomes tweet url. closes #199.

bug?
  • Loading branch information...
1 parent 090b421 commit 029b127c9162311e2b162697a055c30b4026a40b @nahi committed Jul 10, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/models/entry.rb
View
2 app/models/entry.rb
@@ -152,7 +152,7 @@ def initialize(hash)
@checked_at = nil
@hidden = hash['hidden'] || false
if self.service and self.service.twitter?
- @twitter_username = (self.service.profile_url || '').sub(/\A.*\//, '')
+ @twitter_username = (self.service.profile_url || '').match(%r{twitter.com/([^/]+)})[1]
if /@([a-zA-Z0-9_]+)/ =~ self.title
@twitter_reply_to = $1
end

0 comments on commit 029b127

Please sign in to comment.
Something went wrong with that request. Please try again.