"to" is now used for mentions, "cc" for everything else
This commit is contained in:
parent
3c48a1f787
commit
8b9aa80aad
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue