]> git.mxchange.org Git - friendica.git/commitdiff
Add the forum followers to forum posts
authorMichael <heluecht@pirati.ca>
Sun, 6 Jun 2021 13:25:42 +0000 (13:25 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 6 Jun 2021 13:25:42 +0000 (13:25 +0000)
src/Protocol/ActivityPub/Transmitter.php

index 018fdc7b0f4e403bb680e08e58d24e9d78967b99..f6fd1ad1324886542829aa4ea4d30b4fcb0e8785 100644 (file)
@@ -561,6 +561,9 @@ class Transmitter
                                if (!empty($profile)) {
                                        if ($term['type'] == Tag::EXCLUSIVE_MENTION) {
                                                $exclusive = true;
+                                               if (!empty($profile['followers']) && ($profile['type'] == 'Group')) {
+                                                       $data['cc'][] = $profile['followers'];
+                                               }
                                        }
                                        $data['to'][] = $profile['url'];
                                }