module SocialStream::Ostatus::Models::Contact::ClassMethods
Public Instance Methods
from_entry!(entry, receiver)
click to toggle source
Find contact from OStatus entry
# File lib/social_stream/ostatus/models/contact.rb, line 15 def from_entry! entry, receiver # Sender must be remote sender = RemoteSubject.find_or_create_by_webfinger_uri! entry.author.uri contact = sender.contact_to!(receiver) # FIXME: hack contact.user_author = sender contact end