]> git.mxchange.org Git - friendica.git/blobdiff - mod/display.php
multi-user, do not cache open mbox
[friendica.git] / mod / display.php
index b47346c4baae6a7e758aefce7c238cc8ef5b6fa5..c8496160f5ed7fe026284152bdf71308318b9791 100644 (file)
@@ -3,6 +3,11 @@
 
 function display_content(&$a) {
 
+       require_once("include/bbcode.php");
+       require_once('include/security.php');
+       require_once('include/conversation.php');
+
+
        $o = '<div id="live-display"></div>' . "\r\n";
 
        $nick = (($a->argc > 1) ? $a->argv[1] : '');
@@ -16,8 +21,6 @@ function display_content(&$a) {
                return;
        }
 
-       require_once("include/bbcode.php");
-       require_once('include/security.php');
 
 
        $groups = array();
@@ -45,7 +48,11 @@ function display_content(&$a) {
                }
        }
 
-       $a->page_contact = $contact;
+       $r = q("SELECT * FROM `contact` WHERE `uid` = %d AND `self` = 1 LIMIT 1",
+               intval($a->profile['uid'])
+       );
+       if(count($r))
+               $a->page_contact = $r[0];
 
        $sql_extra = "
                AND `allow_cid` = '' 
@@ -109,7 +116,6 @@ function display_content(&$a) {
                        );
                }
 
-               require_once('include/conversation.php');
 
                $o .= conversation($a,$r,'display', false);