diff --git a/src/Model/FContact.php b/src/Model/FContact.php index 8bc696a466..62f2f98364 100644 --- a/src/Model/FContact.php +++ b/src/Model/FContact.php @@ -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]); diff --git a/view/lang/C/messages.po b/view/lang/C/messages.po index 75a19978d3..c2788e6bdb 100644 --- a/view/lang/C/messages.po +++ b/view/lang/C/messages.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: 2022.09-rc\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-09-04 13:40+0000\n" +"POT-Creation-Date: 2022-09-04 14:08+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n"