1
0
Fork 0

AP: Event participation and editing of posts are now supported

This commit is contained in:
Michael 2018-10-27 06:17:17 +00:00
commit f2ddcbe632
3 changed files with 70 additions and 45 deletions

View file

@ -282,8 +282,7 @@ class Transmitter
foreach ($activity[$element] as $receiver) {
if ($receiver == $profile['followers'] && !empty($item_profile['followers'])) {
$permissions[$element][] = $item_profile['followers'];
}
if (!in_array($receiver, $exclude)) {
} elseif (!in_array($receiver, $exclude)) {
$permissions[$element][] = $receiver;
}
}
@ -309,13 +308,13 @@ class Transmitter
$data = ['to' => [], 'cc' => [], 'bcc' => []];
$data = array_merge($data, self::fetchPermissionBlockFromConversation($item));
$actor_profile = APContact::getByURL($item['author-link']);
$terms = Term::tagArrayFromItemId($item['id'], TERM_MENTION);
if (!$item['private']) {
$data = array_merge($data, self::fetchPermissionBlockFromConversation($item));
$data['to'][] = ActivityPub::PUBLIC_COLLECTION;
if (!empty($actor_profile['followers'])) {
$data['cc'][] = $actor_profile['followers'];