Merge branch 'feature/ejabberd_pep' into live
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
commit
322ca98da9
@ -18,10 +18,8 @@ class XmppSetAvatarJob < ApplicationJob
|
|||||||
stanzas = build_xep0084_stanzas
|
stanzas = build_xep0084_stanzas
|
||||||
|
|
||||||
stanzas.each do |stanza|
|
stanzas.each do |stanza|
|
||||||
res = ejabberd.send_stanza {
|
payload = { from: @user.address, to: @user.address, stanza: stanza }
|
||||||
from: user.address, to: user.address, stanza: stanza
|
res = ejabberd.send_stanza payload
|
||||||
}
|
|
||||||
|
|
||||||
raise res.inspect if res.status != 200
|
raise res.inspect if res.status != 200
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user