X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fupdate_contact.php;h=1a85018e6d23645842f9b261e3c4a00364014ef5;hb=5c8708f4c9cfe06bb0924a744f75a8b3bbc14296;hp=4863ad02ded5b4935c7bac1d631006fea691c775;hpb=e94911620aa38b3210e0334506fbb6822f405b28;p=friendica.git diff --git a/mod/update_contact.php b/mod/update_contact.php index 4863ad02de..1a85018e6d 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); - } else { - $text = ''; + if (!empty(DI::args()->get(1)) && !empty($_GET['force'])) { + $contact = Contact::getById(DI::args()->get(1), ['id', 'deleted']); + if (DBA::isResult($contact) && empty($contact['deleted'])) { + DI::page()['aside'] = ''; + + if (!empty($_GET['item'])) { + $item = Post::selectFirst(['parent'], ['id' => $_GET['item']]); + } + + $text = Contact::getPostsFromId($contact['id'], true, true, $item['parent'] ?? 0); + } } - System::htmlUpdateExit($text); + System::htmlUpdateExit($text ?? ''); }