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: d3fcff747b712ea4df62bea2e35857de2d1eb425 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

#   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