Merge pull request #11812 from annando/ap-performance

Hopefully fixes loops during message processing
This commit is contained in:
Hypolite Petovan 2022-08-03 03:00:50 -04:00 committed by GitHub
commit 196a1de7f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 167 additions and 91 deletions

View file

@ -2449,7 +2449,7 @@ class Contact
$new_pubkey = $ret['pubkey'] ?? '';
if ($uid == 0) {
if ($uid == 0 && DI::config()->get('system', 'fetch_featured_posts')) {
if ($ret['network'] == Protocol::ACTIVITYPUB) {
$apcontact = APContact::getByURL($ret['url'], false);
if (!empty($apcontact['featured'])) {