diff options
author | friendica <info@friendica.com> | 2013-12-18 14:53:18 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-12-18 14:53:18 -0800 |
commit | 1a4c91ccf5f95d03badd57f655d4feced50d39d2 (patch) | |
tree | 2f097618c0ee6fc26002028a90a54b39c65b6a0c /mod/message.php | |
parent | 38fd8410eb5c66928cb24bb87ad38657f53aec3a (diff) | |
download | volse-hubzilla-1a4c91ccf5f95d03badd57f655d4feced50d39d2.tar.gz volse-hubzilla-1a4c91ccf5f95d03badd57f655d4feced50d39d2.tar.bz2 volse-hubzilla-1a4c91ccf5f95d03badd57f655d4feced50d39d2.zip |
Add App::poi to store the "person of interest" for a given page. This is so we can comanchificate the vcard_from_xchan widget -- it will pick up the target xchan from the page environment.
Diffstat (limited to 'mod/message.php')
-rw-r--r-- | mod/message.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/mod/message.php b/mod/message.php index 6a33f1db7..8bb9a6ee7 100644 --- a/mod/message.php +++ b/mod/message.php @@ -374,15 +374,14 @@ function message_content(&$a) { return $o; } - $other_channel = null; if($messages[0]['to_xchan'] === $channel['channel_hash']) - $other_channel = $messages[0]['from']; + $a->poi = $messages[0]['from']; else - $other_channel = $messages[0]['to']; + $a->poi = $messages[0]['to']; require_once('include/Contact.php'); - $a->set_widget('mail_conversant',vcard_from_xchan($other_channel,$get_observer_hash,'mail')); + $a->set_widget('mail_conversant',vcard_from_xchan($a->poi,$get_observer_hash,'mail')); $tpl = get_markup_template('msg-header.tpl'); |