[ActivityPub][Postman] Fix not sending notices to self
This commit is contained in:
parent
705b679332
commit
351e356bb4
@ -416,9 +416,10 @@ class Activitypub_postman
|
|||||||
/**
|
/**
|
||||||
* Clean list of inboxes to deliver messages
|
* Clean list of inboxes to deliver messages
|
||||||
*
|
*
|
||||||
* @author Diogo Cordeiro <diogo@fc.up.pt>
|
|
||||||
* @param bool $actorFollowers whether to include the actor's follower collection
|
* @param bool $actorFollowers whether to include the actor's follower collection
|
||||||
* @return array To Inbox URLs
|
* @return array To Inbox URLs
|
||||||
|
* @throws Exception
|
||||||
|
* @author Diogo Cordeiro <diogo@fc.up.pt>
|
||||||
*/
|
*/
|
||||||
private function to_inbox(bool $actorFollowers = true): array
|
private function to_inbox(bool $actorFollowers = true): array
|
||||||
{
|
{
|
||||||
@ -439,7 +440,7 @@ class Activitypub_postman
|
|||||||
foreach ($this->to as $to_profile) {
|
foreach ($this->to as $to_profile) {
|
||||||
$i = $to_profile->get_inbox();
|
$i = $to_profile->get_inbox();
|
||||||
// Prevent delivering to self
|
// Prevent delivering to self
|
||||||
if ($i == [common_local_url('apInbox')]) {
|
if ($i == common_local_url('apInbox')) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$to_inboxes[] = $i;
|
$to_inboxes[] = $i;
|
||||||
|
Loading…
Reference in New Issue
Block a user