mirror of
https://github.com/friendica/friendica
synced 2025-04-23 01:50:10 +00:00
Merge pull request #11684 from MrPetovan/bug/11651-ap-fetch-queue
Create ActivityPub\FetchQueue and ActivityPub\FetchQueueItem classes
This commit is contained in:
commit
e594656a48
7 changed files with 189 additions and 42 deletions
|
@ -3411,7 +3411,11 @@ class Item
|
|||
return is_numeric($hookData['item_id']) ? $hookData['item_id'] : 0;
|
||||
}
|
||||
|
||||
if ($fetched_uri = ActivityPub\Processor::fetchMissingActivity($uri)) {
|
||||
$fetchQueue = new ActivityPub\FetchQueue();
|
||||
$fetched_uri = ActivityPub\Processor::fetchMissingActivity($fetchQueue, $uri);
|
||||
$fetchQueue->process();
|
||||
|
||||
if ($fetched_uri) {
|
||||
$item_id = self::searchByLink($fetched_uri, $uid);
|
||||
} else {
|
||||
$item_id = Diaspora::fetchByURL($uri);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue