Merge pull request #9563 from annando/annando/issue9407
iIssue 9407: Fix comments to Peertube
This commit is contained in:
commit
039bff38db
1 changed files with 6 additions and 3 deletions
|
@ -432,7 +432,12 @@ class Transmitter
|
||||||
$activity = json_decode($conversation['source'], true);
|
$activity = json_decode($conversation['source'], true);
|
||||||
|
|
||||||
$actor = JsonLD::fetchElement($activity, 'actor', 'id');
|
$actor = JsonLD::fetchElement($activity, 'actor', 'id');
|
||||||
$profile = APContact::getByURL($actor);
|
if (!empty($actor)) {
|
||||||
|
$permissions['to'][] = $actor;
|
||||||
|
$profile = APContact::getByURL($actor);
|
||||||
|
} else {
|
||||||
|
$profile = [];
|
||||||
|
}
|
||||||
|
|
||||||
$item_profile = APContact::getByURL($item['author-link']);
|
$item_profile = APContact::getByURL($item['author-link']);
|
||||||
$exclude[] = $item['author-link'];
|
$exclude[] = $item['author-link'];
|
||||||
|
@ -441,8 +446,6 @@ class Transmitter
|
||||||
$exclude[] = $item['owner-link'];
|
$exclude[] = $item['owner-link'];
|
||||||
}
|
}
|
||||||
|
|
||||||
$permissions['to'][] = $actor;
|
|
||||||
|
|
||||||
foreach (['to', 'cc', 'bto', 'bcc'] as $element) {
|
foreach (['to', 'cc', 'bto', 'bcc'] as $element) {
|
||||||
if (empty($activity[$element])) {
|
if (empty($activity[$element])) {
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in a new issue