"to" is now used for mentions, "cc" for everything else
This commit is contained in:
parent
3c48a1f787
commit
8b9aa80aad
1 changed files with 1 additions and 6 deletions
|
@ -329,7 +329,7 @@ class Transmitter
|
||||||
foreach ($terms as $term) {
|
foreach ($terms as $term) {
|
||||||
$profile = APContact::getByURL($term['url'], false);
|
$profile = APContact::getByURL($term['url'], false);
|
||||||
if (!empty($profile) && empty($contacts[$profile['url']])) {
|
if (!empty($profile) && empty($contacts[$profile['url']])) {
|
||||||
$data['cc'][] = $profile['url'];
|
$data['to'][] = $profile['url'];
|
||||||
$contacts[$profile['url']] = $profile['url'];
|
$contacts[$profile['url']] = $profile['url'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -381,11 +381,6 @@ class Transmitter
|
||||||
}
|
}
|
||||||
DBA::close($parents);
|
DBA::close($parents);
|
||||||
|
|
||||||
if (empty($data['to'])) {
|
|
||||||
$data['to'] = $data['cc'];
|
|
||||||
$data['cc'] = [];
|
|
||||||
}
|
|
||||||
|
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue