- $from = Post::selectFirstPost(['author-id'], ['uri-id' => $fromUriId]);
- $from_author = DBA::selectFirst('account-view', ['ap-followers'], ['id' => $from['author-id']]);
- $to = Post::selectFirstPost(['author-id'], ['uri-id' => $toUriId]);
- $to_author = DBA::selectFirst('account-view', ['ap-followers'], ['id' => $to['author-id']]);
+ $from = Post::selectFirstPost(['author-id'], ['uri-id' => $fromUriId]);
+ $from_author = DBA::selectFirst('account-view', ['ap-followers'], ['id' => $from['author-id']]);
+ $to = Post::selectFirstPost(['author-id'], ['uri-id' => $toUriId]);
+ $to_author = DBA::selectFirst('account-view', ['ap-followers'], ['id' => $to['author-id']]);
+ $parent = Post::selectFirstPost(['author-id'], ['uri-id' => $parentUriId]);
+ $parent_author = DBA::selectFirst('account-view', ['ap-followers'], ['id' => $parent['author-id']]);
+
+ $followers = '';
+ foreach (array_column(Tag::getByURIId($parentUriId, [Tag::TO, Tag::CC, Tag::BCC]), 'url') as $url) {
+ if ($url == $parent_author['ap-followers']) {
+ $followers = $url;
+ break;
+ }
+ }