Module: SocialStream::Ostatus::Models::Actor::ClassMethods
- Defined in:
- lib/social_stream/ostatus/models/actor.rb
Instance Method Summary collapse
-
#find_by_webfinger!(link) ⇒ Object
Extract the slug from the webfinger id and return the actor searching by that slug.
Instance Method Details
#find_by_webfinger!(link) ⇒ Object
Extract the slug from the webfinger id and return the actor searching by that slug
23 24 25 26 27 |
# File 'lib/social_stream/ostatus/models/actor.rb', line 23 def find_by_webfinger!(link) link =~ /(acct:)?(.*)@/ find_by_slug! $2 end |