From: Michael Vogel Date: Thu, 29 Oct 2015 07:10:39 +0000 (+0100) Subject: Show the profile in the network view when viewing single contacts X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2e316b5cf2c39660b34430a82bc1308cb7717c1f;p=friendica.git Show the profile in the network view when viewing single contacts --- diff --git a/mod/network.php b/mod/network.php index 639d868fa2..66beface08 100644 --- a/mod/network.php +++ b/mod/network.php @@ -150,6 +150,14 @@ function network_init(&$a) { $a->page['aside'] .= saved_searches($search); $a->page['aside'] .= fileas_widget($a->get_baseurl(true) . '/network',(x($_GET, 'file') ? $_GET['file'] : '')); + if(x($_GET['cid']) && intval($_GET['cid']) != 0) { + $r = q("SELECT * FROM `contact` WHERE `id` = %d", + intval($_GET['cid'])); + if ($r) { + $a->page['aside'] = ""; + profile_load($a, "", 0, $r[0]); + } + } } function saved_searches($search) {