SImplify code
This commit is contained in:
parent
b081227b47
commit
22952f88ca
|
@ -702,7 +702,6 @@ class Transmitter
|
|||
}
|
||||
|
||||
foreach (['to' => Tag::TO, 'cc' => Tag::CC, 'bcc' => Tag::BCC] as $element => $type) {
|
||||
if (!empty($receivers[$element])) {
|
||||
foreach ($receivers[$element] as $receiver) {
|
||||
if ($receiver == ActivityPub::PUBLIC_COLLECTION) {
|
||||
$name = Receiver::PUBLIC_COLLECTION;
|
||||
|
@ -712,7 +711,6 @@ class Transmitter
|
|||
Tag::store($item['uri-id'], $type, $name, $receiver);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $receivers;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user