From: Michael Date: Sat, 13 Oct 2018 18:59:39 +0000 (+0000) Subject: "to" is now used for mentions, "cc" for everything else X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8b9aa80aadd5700387118883db19661c8ac4ebd3;p=friendica.git "to" is now used for mentions, "cc" for everything else --- diff --git a/src/Protocol/ActivityPub/Transmitter.php b/src/Protocol/ActivityPub/Transmitter.php index 3fc5900afa..f5765ccdd3 100644 --- a/src/Protocol/ActivityPub/Transmitter.php +++ b/src/Protocol/ActivityPub/Transmitter.php @@ -329,7 +329,7 @@ class Transmitter foreach ($terms as $term) { $profile = APContact::getByURL($term['url'], false); if (!empty($profile) && empty($contacts[$profile['url']])) { - $data['cc'][] = $profile['url']; + $data['to'][] = $profile['url']; $contacts[$profile['url']] = $profile['url']; } } @@ -381,11 +381,6 @@ class Transmitter } DBA::close($parents); - if (empty($data['to'])) { - $data['to'] = $data['cc']; - $data['cc'] = []; - } - return $data; }