wallwall oddities on display page

This commit is contained in:
Friendika 2011-04-11 16:15:38 -07:00
parent 68731a2c39
commit a4836ac1ba
4 changed files with 8 additions and 3 deletions

View File

@ -201,6 +201,7 @@ class App {
public $user; public $user;
public $cid; public $cid;
public $contact; public $contact;
public $page_contact;
public $content; public $content;
public $data; public $data;
public $error = false; public $error = false;

View File

@ -240,9 +240,9 @@ function conversation(&$a, $items, $mode, $update) {
if($item['type'] === 'wall') { if($item['type'] === 'wall') {
// I do. Put me on the left of the wall-to-wall notice. // I do. Put me on the left of the wall-to-wall notice.
$owner_url = $a->contact['url']; $owner_url = $a->page_contact['url'];
$owner_photo = $a->contact['thumb']; $owner_photo = $a->page_contact['thumb'];
$owner_name = $a->contact['name']; $owner_name = $a->page_contact['name'];
$template = $wallwall; $template = $wallwall;
$commentww = 'ww'; $commentww = 'ww';
} }

View File

@ -45,6 +45,7 @@ function display_content(&$a) {
} }
} }
$a->page_contact = $contact;
$sql_extra = " $sql_extra = "
AND `allow_cid` = '' AND `allow_cid` = ''

View File

@ -262,6 +262,9 @@ function network_content(&$a, $update = 0) {
} }
} }
// Set this so that the conversation function can find out contact info for our wall-wall items
$a->page_contact = $a->contact;
$mode = (($nouveau) ? 'network-new' : 'network'); $mode = (($nouveau) ? 'network-new' : 'network');
require_once('include/conversation.php'); require_once('include/conversation.php');