mirror of
https://github.com/friendica/friendica
synced 2025-04-23 06:30:11 +00:00
Fetch featured posts through a worker
This commit is contained in:
parent
036b565a78
commit
30b9af10ac
2 changed files with 43 additions and 1 deletions
|
@ -2316,7 +2316,10 @@ class Contact
|
|||
|
||||
if ($uid == 0) {
|
||||
if ($ret['network'] == Protocol::ACTIVITYPUB) {
|
||||
ActivityPub\Processor::fetchFeaturedPosts($ret['url']);
|
||||
$apcontact = APContact::getByURL($ret['url'], false);
|
||||
if (!empty($apcontact['featured'])) {
|
||||
Worker::add(PRIORITY_LOW, 'FetchFeaturedPosts', $ret['url']);
|
||||
}
|
||||
}
|
||||
|
||||
$ret['last-item'] = Probe::getLastUpdate($ret);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue