mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-03-15 18:39:58 +01:00
no more thread.new
This commit is contained in:
parent
0a23494962
commit
309fa939aa
1 changed files with 2 additions and 1 deletions
|
@ -47,11 +47,12 @@ class Ajax::InboxController < ApplicationController
|
|||
end
|
||||
|
||||
# sharing
|
||||
Thread.new do
|
||||
begin
|
||||
share_to = JSON.parse params[:share]
|
||||
current_user.services.each do |service|
|
||||
service.post(answer) if share_to.include? service.provider
|
||||
end
|
||||
rescue
|
||||
end
|
||||
|
||||
@status = :okay
|
||||
|
|
Loading…
Reference in a new issue