block diasporahq from posting to federation for today

This commit is contained in:
Maxwell Salzberg 2011-09-08 11:57:06 -07:00
parent c5fbe1584a
commit 9917dac4c2

View file

@ -14,7 +14,9 @@ module Job
OPTS = {:max_redirects => 3, :timeout => 5000, :method => :post}
def self.perform(user_id, enc_object_xml, person_ids, retry_count=0)
return true if user_id == '91842' #NOTE 09/08/11 blocking diapsorahqposts
user = User.find(user_id)
people = Person.where(:id => person_ids)
salmon = Salmon::SalmonSlap.create(user, Base64.decode64(enc_object_xml))