SImplify code

This commit is contained in:
Michael 2022-02-19 19:45:27 +00:00
parent b081227b47
commit 22952f88ca

View File

@ -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;
}