This reverts commit655558cb95. Revert "MS DG; for real this time?" This reverts commitf85a047f6f. Revert "MS DG; actually fix the bug" This reverts commitcde12ec232. Revert "fix small commenting email bug #oops" This reverts commita552fc80c0. Revert "dont ban diasporahq stuff" This reverts commit2c12b94e67. Revert "Merge branch 'participants'" This reverts commit7417801886, reversing changes made toabd211ba72.
19 lines
618 B
Ruby
19 lines
618 B
Ruby
# Copyright (c) 2010-2011, Diaspora Inc. This file is
|
|
# licensed under the Affero General Public License version 3 or later. See
|
|
# the COPYRIGHT file.
|
|
|
|
require File.join(Rails.root, 'lib/postzord/receiver/private')
|
|
require File.join(Rails.root, 'lib/postzord/receiver/local_batch')
|
|
|
|
module Jobs
|
|
class ReceiveLocalBatch < Base
|
|
|
|
@queue = :receive
|
|
|
|
def self.perform(object_class_string, object_id, recipient_user_ids)
|
|
object = object_class_string.constantize.find(object_id)
|
|
receiver = Postzord::Receiver::LocalBatch.new(object, recipient_user_ids)
|
|
receiver.perform!
|
|
end
|
|
end
|
|
end
|