Browse Source

Ensure that the Blocking jids list are uniques, some servers returns duplicate

feature/templater
Timothée Jaussoin 3 months ago
parent
commit
9a86371f0a
  1. 2
      src/Moxl/Xec/Action/Blocking/Request.php

2
src/Moxl/Xec/Action/Blocking/Request.php

@ -22,6 +22,8 @@ class Request extends Action
$jids->push((string)$item->attributes()->jid);
}
$jids = $jids->unique();
Reported::insert($jids->diff(Reported::whereIn('id', $jids)->get()->pluck('id'))->map(function ($jid) {
$now = \Carbon\Carbon::now();
return [

Loading…
Cancel
Save