diaspora/app/models/jobs/publish_to_hub.rb
Maxwell Salzberg 696779d589 Revert "remove perform delegate: use a gem that unobtrusivly does the same"
the connection adapter messes with single process mode...
This reverts commit dd752d7dd9.
2011-07-02 12:01:31 -07:00

15 lines
458 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 PublishToHub < Base
@queue = :http_service
def self.perform_delegate(sender_public_url)
require File.join(Rails.root, 'lib/pubsubhubbub')
atom_url = sender_public_url + '.atom'
Pubsubhubbub.new(AppConfig[:pubsub_server]).publish(atom_url)
end
end
end