lib/nelumba-mongodb/person.rb
# Updates so that we now follow the given Person.
Updates so that we now follow the given Person.
Updates so that we now follow the given Person .
def follow!(author)
      if author.is_a? Nelumba::Identity
        author = author.person
      end
      self.following << author
      self.save
      self.timeline.follow! author.identity.outbox
      if author.local?
        author.followed_by! self
      end
      self.activities.post!(:verb                 => :follow,
                            :actor                => self,
                            :external_object_id   => author.id,
                            :external_object_type => 'Person')
    end
def follow! ( author ) if author . is_a? Nelumba :: Identity author = author . person end self . following << author self . save self . timeline . follow! author . identity . outbox if author . local? author . followed_by! self end self . activities . post! ( :verb => :follow , :actor => self , :external_object_id => author . id , :external_object_type => 'Person' ) end
Updates so that we now follow the given Person.
Updates so that we now follow the given Person .
# add the author from our list of followers # determine the feed to subscribe to # tell local users that somebody on this server is following them. # Add the activity
author