lib/nelumba-mongodb/person.rb
def unfollow!(author)
      if author.is_a? Nelumba::Identity
        author = author.person
      end

      # remove the person from our list of followers
      self.following_ids.delete(author.id)
      self.save

      # unfollow their timeline feed
      self.timeline.unfollow! author.identity.outbox

      # tell local users that somebody on this server has stopped following them.
      if author.local?
        author.unfollowed_by! self
      end

      # Add the activity
      self.activities.post!(:verb                 => :"stop-following",
                            :actor                => self,
                            :external_object_id   => author.id,
                            :external_object_type => 'Person')
    end
# Updates so that we do not follow the given Person.
Updates so that we do not follow the given Person.
Updates so that we do not follow the given Person .
def unfollow!(author)
      if author.is_a? Nelumba::Identity
        author = author.person
      end
      self.following_ids.delete(author.id)
      self.save
      self.timeline.unfollow! author.identity.outbox
      if author.local?
        author.unfollowed_by! self
      end
      self.activities.post!(:verb                 => :"stop-following",
                            :actor                => self,
                            :external_object_id   => author.id,
                            :external_object_type => 'Person')
    end
def unfollow! ( author ) if author . is_a? Nelumba :: Identity author = author . person end self . following_ids . delete ( author . id ) self . save self . timeline . unfollow! author . identity . outbox if author . local? author . unfollowed_by! self end self . activities . post! ( :verb => :" stop-following " , :actor => self , :external_object_id => author . id , :external_object_type => 'Person' ) end
Updates so that we do not follow the given Person.
Updates so that we do not follow the given Person .
# remove the person from our list of followers # unfollow their timeline feed # tell local users that somebody on this server has stopped following them. # Add the activity
author