]> git.mxchange.org Git - friendica.git/blobdiff - mod/network.php
new version of the ShaShape iconset
[friendica.git] / mod / network.php
index 539d5347db442126cc57dda33870738ae4a66048..42c416b32f93f464e870b0993e26754d39884fa3 100644 (file)
@@ -151,11 +151,11 @@ function network_init(&$a) {
        $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",
+               $r = q("SELECT `url` FROM `contact` WHERE `id` = %d",
                        intval($_GET['cid']));
                if ($r) {
                        $a->page['aside'] = "";
-                       profile_load($a, "", 0, $r[0]);
+                       profile_load($a, "", 0, get_contact_details_by_url($r[0]["url"]));
                }
        }
 }
@@ -489,6 +489,7 @@ function network_content(&$a, $update = 0) {
                $content = "";
 
                if ($cid) {
+                       // If $cid belongs to a communitity forum or a privat goup,.add a mention to the status editor
                        $contact = q("SELECT `nick` FROM `contact` WHERE `id` = %d AND `uid` = %d AND (`forum` OR `prv`) ",
                                intval($cid),
                                intval(local_user())