mirror of
https://github.com/friendica/friendica
synced 2025-04-25 16:30:10 +00:00
Merge remote-tracking branch 'upstream/2022.09-rc' into language
This commit is contained in:
commit
e2cb705468
2 changed files with 7 additions and 2 deletions
|
@ -96,7 +96,12 @@ class FContact
|
|||
$uriid = ItemURI::insert(['uri' => $arr['url'], 'guid' => $arr['guid']]);
|
||||
|
||||
$contact = Contact::getByUriId($uriid, ['id']);
|
||||
if (!empty($contact['id'])) {
|
||||
$apcontact = APContact::getByURL($arr['url'], false);
|
||||
if (!empty($apcontact)) {
|
||||
$interacted = $apcontact['following_count'];
|
||||
$interacting = $apcontact['followers_count'];
|
||||
$posts = $apcontact['statuses_count'];
|
||||
} elseif (!empty($contact['id'])) {
|
||||
$last_interaction = DateTimeFormat::utc('now - 180 days');
|
||||
|
||||
$interacted = DBA::count('contact-relation', ["`cid` = ? AND NOT `follows` AND `last-interaction` > ?", $contact['id'], $last_interaction]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue