lib/nelumba-mongodb/person.rb
# Deliver an external Activity from somebody we follow.
#
# This goes in our timeline.
Deliver an external Activity from somebody we follow.
This goes in our timeline.
Deliver an external Activity from somebody we follow . This goes in our timeline .
def deliver!(activity)
      author = Nelumba::Person.find(:id => activity.author.id)
      return false if author.nil?
      return false unless followings.include?(author)
      identity = Nelumba::Identity.find_by_author(author)
      return false if identity.nil?
      identity.outbox.post! activity
      if activity.type == :note
        self.timeline.repost! activity
      end
    end
def deliver! ( activity ) author = Nelumba :: Person . find ( :id => activity . author . id ) return false if author . nil? return false unless followings . include? ( author ) identity = Nelumba :: Identity . find_by_author ( author ) return false if identity . nil? identity . outbox . post! activity if activity . type == :note self . timeline . repost! activity end end
Deliver an external Activity from somebody we follow.
Deliver an external Activity from somebody we follow .
# Determine the original feed as duplicate it in our timeline # Do not deliver if we do not follow the Person # We should know how to talk back to this person # Add to author's outbox feed # Copy activity to timeline
activity