"to" is now used for mentions, "cc" for everything else

This commit is contained in:
Michael 2018-10-13 18:59:39 +00:00
parent 3c48a1f787
commit 8b9aa80aad
1 changed files with 1 additions and 6 deletions

View File

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