1
1
Fork 0

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) { foreach (['to' => Tag::TO, 'cc' => Tag::CC, 'bcc' => Tag::BCC] as $element => $type) {
if (!empty($receivers[$element])) {
foreach ($receivers[$element] as $receiver) { foreach ($receivers[$element] as $receiver) {
if ($receiver == ActivityPub::PUBLIC_COLLECTION) { if ($receiver == ActivityPub::PUBLIC_COLLECTION) {
$name = Receiver::PUBLIC_COLLECTION; $name = Receiver::PUBLIC_COLLECTION;
@ -712,7 +711,6 @@ class Transmitter
Tag::store($item['uri-id'], $type, $name, $receiver); Tag::store($item['uri-id'], $type, $name, $receiver);
} }
} }
}
return $receivers; return $receivers;
} }