X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fupdate_contact.php;h=7dccb103d10fe43fea6447b75b5ff55214540ff2;hb=865006682a3952565035207898b80dfbd6d390b1;hp=5fb62e6a077de2ce919273c423f75a3c004698c1;hpb=09961a07e48de836f0629b807c4a276c2ff06e87;p=friendica.git diff --git a/mod/update_contact.php b/mod/update_contact.php index 5fb62e6a07..7dccb103d1 100644 --- a/mod/update_contact.php +++ b/mod/update_contact.php @@ -1,6 +1,6 @@ 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); }