Welcome to mirror list, hosted at ThFree Co, Russian Federation.

publish_to_hub.rb « workers « app - github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7d33daebaff10379d2c553a24f078bfc736bcdee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#   Copyright (c) 2010-2011, Diaspora Inc.  This file is
#   licensed under the Affero General Public License version 3 or later.  See
#   the COPYRIGHT file.

module Workers
  class PublishToHub < Base
    sidekiq_options queue: :medium

    def perform(sender_atom_url)
      Pubsubhubbub.new(AppConfig.environment.pubsub_server.get).publish(sender_atom_url)
    end
  end
end