From 8b9aa80aadd5700387118883db19661c8ac4ebd3 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 13 Oct 2018 18:59:39 +0000 Subject: [PATCH] "to" is now used for mentions, "cc" for everything else --- src/Protocol/ActivityPub/Transmitter.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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; } -- 2.39.5