mirror of
https://github.com/friendica/friendica
synced 2025-04-27 13:10:10 +00:00
Additional direction for fetching content
This commit is contained in:
parent
c082109ff9
commit
11d2b027ec
4 changed files with 21 additions and 12 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue