mirror of
https://github.com/versia-pub/activitypub.git
synced 2025-12-06 14:48:19 +01:00
dedub array first
This commit is contained in:
parent
d275165b97
commit
bf2377a68d
|
|
@ -115,6 +115,9 @@ async fn federate_inbox(note: crate::entities::post::Model) -> anyhow::Result<()
|
||||||
|
|
||||||
array.append(&mut list_url);
|
array.append(&mut list_url);
|
||||||
|
|
||||||
|
array.sort();
|
||||||
|
array.dedup();
|
||||||
|
|
||||||
let req_client = request_client();
|
let req_client = request_client();
|
||||||
for inbox in array {
|
for inbox in array {
|
||||||
let push = req_client.post(inbox)
|
let push = req_client.post(inbox)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue