X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fupdate_contact.php;h=b97e9ec7be9df49a2cfa1b65d45f5f496f842f47;hb=a609e545b66808f8a8e6c9d2f8dab08acd968880;hp=1a85018e6d23645842f9b261e3c4a00364014ef5;hpb=abd3b2180fee672a4f9c3b31446be96c53b3d02d;p=friendica.git diff --git a/mod/update_contact.php b/mod/update_contact.php index 1a85018e6d..b97e9ec7be 100644 --- a/mod/update_contact.php +++ b/mod/update_contact.php @@ -31,7 +31,7 @@ use Friendica\Model\Contact; function update_contact_content(App $a) { if (!empty(DI::args()->get(1)) && !empty($_GET['force'])) { - $contact = Contact::getById(DI::args()->get(1), ['id', 'deleted']); + $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'] ?? ''); } }