]> git.mxchange.org Git - friendica.git/commitdiff
"to" is now used for mentions, "cc" for everything else
authorMichael <heluecht@pirati.ca>
Sat, 13 Oct 2018 18:59:39 +0000 (18:59 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 13 Oct 2018 18:59:39 +0000 (18:59 +0000)
src/Protocol/ActivityPub/Transmitter.php

index 3fc5900afa0d1b05b51a2dcd4fa323bcce15bfc9..f5765ccdd31f5e509d7a34cda6887791b5ffe9af 100644 (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;
        }