aboutsummaryrefslogtreecommitdiffstats
path: root/include/conversation.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-11-03 05:46:56 -0700
committerfriendica <info@friendica.com>2012-11-03 05:46:56 -0700
commit358111c76b94cd430a0d31d0255571bf5b502242 (patch)
treed524536fde325e81a970be20be5a689e1c8ec417 /include/conversation.php
parent8a983a82eccb68472ee9a39c5c0072dd879cddab (diff)
downloadvolse-hubzilla-358111c76b94cd430a0d31d0255571bf5b502242.tar.gz
volse-hubzilla-358111c76b94cd430a0d31d0255571bf5b502242.tar.bz2
volse-hubzilla-358111c76b94cd430a0d31d0255571bf5b502242.zip
fix post preview
Diffstat (limited to 'include/conversation.php')
-rw-r--r--include/conversation.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/conversation.php b/include/conversation.php
index d9a5619a2..9a76c9df1 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -853,7 +853,7 @@ function conversation(&$a, $items, $mode, $update, $page_mode = 'traditional') {
if($item['author-link'] && (! $item['author-name']))
$profile_name = $item['author-link'];
-
+
$tags=array();
$hashtags = array();
@@ -883,6 +883,11 @@ function conversation(&$a, $items, $mode, $update, $page_mode = 'traditional') {
else
$profile_avatar = ((strlen($item['author-avatar'])) ? $a->get_cached_avatar_image($item['author-avatar']) : $item['thumb']);
+ $profile_name = $item['author']['xchan_name'];
+ $profile_link = $item['author']['xchan_url'];
+ $profile_avatar = $item['author']['xchan_photo_m'];
+
+
$locate = array('location' => $item['location'], 'coord' => $item['coord'], 'html' => '');
call_hooks('render_location',$locate);
@@ -923,7 +928,7 @@ function conversation(&$a, $items, $mode, $update, $page_mode = 'traditional') {
'template' => $tpl,
'tags' => $tags,
'id' => (($preview) ? 'P0' : $item['item_id']),
- 'linktitle' => sprintf( t('View %s\'s profile @ %s'), $profile_name, ((strlen($item['author-link'])) ? $item['author-link'] : $item['url'])),
+ 'linktitle' => sprintf( t('View %s\'s profile @ %s'), $profile_name, $profile_url),
'profile_url' => $profile_link,
'item_photo_menu' => item_photo_menu($item),
'name' => template_escape($profile_name),