diaspora/app/models/job/receive.rb
2011-09-12 17:02:40 -07:00

17 lines
479 B
Ruby

# Copyright (c) 2010, Diaspora Inc. This file is
# licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file.
module Job
class Receive < Base
@queue = :receive
def self.perform(user_id, xml, salmon_author_id)
user = User.find(user_id)
salmon_author = Person.find(salmon_author_id)
zord = Postzord::Receiver::Private.new(user, :person => salmon_author)
zord.parse_and_receive(xml)
end
end
end