mirror of
https://github.com/diaspora/diaspora.git
synced 2026-04-29 03:01:03 -04:00
16 lines
384 B
Ruby
16 lines
384 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 MessageHandler
|
|
|
|
NUM_TRIES = 3
|
|
|
|
def self.add_post_request(destinations, body)
|
|
b = CGI::escape( body )
|
|
[*destinations].each do |dest|
|
|
Resque.enqueue(Jobs::HttpPost, dest, body, NUM_TRIES)
|
|
end
|
|
end
|
|
end
|