X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fupdate_contact.php;h=7dccb103d10fe43fea6447b75b5ff55214540ff2;hb=b0bf4b435949e923caa5d6d52b12d364bf16ae82;hp=4863ad02ded5b4935c7bac1d631006fea691c775;hpb=d6ed0068e6c8bf513e40a5d29b73d100f664261b;p=friendica.git diff --git a/mod/update_contact.php b/mod/update_contact.php index 4863ad02de..7dccb103d1 100644 --- a/mod/update_contact.php +++ b/mod/update_contact.php @@ -1,6 +1,6 @@ get(local_user(), 'system', 'no_auto_update')) { - $text = Contact::content([], true); + if (!empty(DI::args()->getArgv()[1]) && (!empty($_GET['force']) || !DI::pConfig()->get(local_user(), 'system', 'no_auto_update'))) { + if (!empty($_GET['item'])) { + $item = Post::selectFirst(['parent'], ['id' => $_GET['item']]); + $parentid = $item['parent'] ?? 0; + } else { + $parentid = 0; + } + $text = Contact::getConversationsHMTL($a, DI::args()->getArgv()[1], true, $parentid); } else { $text = ''; } - System::htmlUpdateExit($text); }