X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fupdate_contact.php;h=b97e9ec7be9df49a2cfa1b65d45f5f496f842f47;hb=a609e545b66808f8a8e6c9d2f8dab08acd968880;hp=8eeb9facf1b81f7c2d83f7a0f4345d0ef32d4f5b;hpb=197c77f43dcbe08743366ed35a83e5affd284872;p=friendica.git diff --git a/mod/update_contact.php b/mod/update_contact.php index 8eeb9facf1..b97e9ec7be 100644 --- a/mod/update_contact.php +++ b/mod/update_contact.php @@ -1,6 +1,6 @@ get(1)) && (!empty($_GET['force']) || !DI::pConfig()->get(local_user(), 'system', 'no_auto_update'))) { - $contact = Contact::getById(DI::args()->get(1), ['id', 'deleted']); + if (!empty(DI::args()->get(1)) && !empty($_GET['force'])) { + $contact = DBA::selectFirst('account-user-view', ['pid', 'deleted'], ['id' => DI::args()->get(1)]); if (DBA::isResult($contact) && empty($contact['deleted'])) { DI::page()['aside'] = ''; @@ -39,7 +39,7 @@ function update_contact_content(App $a) $item = Post::selectFirst(['parent'], ['id' => $_GET['item']]); } - $text = Contact::getPostsFromId($contact['id'], true, true, $item['parent'] ?? 0); + $text = Contact::getThreadsFromId($contact['pid'], DI::userSession()->getLocalUserId(), true, $item['parent'] ?? 0, $_GET['last_received'] ?? ''); } }