Additional direction for fetching content

This commit is contained in:
Michael 2020-09-21 15:17:33 +00:00
parent c082109ff9
commit 11d2b027ec
4 changed files with 21 additions and 12 deletions

View file

@ -100,7 +100,7 @@ class Receiver
$apcontact = APContact::getByURL($actor);
if (!empty($apcontact) && ($apcontact['type'] == 'Application') && ($apcontact['nick'] == 'relay')) {
self::processRelayPost($ldactivity);
self::processRelayPost($ldactivity, $actor);
return;
}
@ -150,10 +150,11 @@ class Receiver
/**
* Process incoming posts from relays
*
* @param array $activity
* @param array $activity
* @param string $actor
* @return void
*/
private static function processRelayPost(array $activity)
private static function processRelayPost(array $activity, string $actor)
{
$type = JsonLD::fetchElement($activity, '@type');
if (!$type) {
@ -180,7 +181,7 @@ class Receiver
return;
}
Processor::fetchMissingActivity($object_id, [], true);
Processor::fetchMissingActivity($object_id, [], $actor);
$item_id = Item::searchByLink($object_id);
if ($item_id) {