aboutsummaryrefslogtreecommitdiffstats
path: root/object/Item.php
diff options
context:
space:
mode:
Diffstat (limited to 'object/Item.php')
-rw-r--r--object/Item.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/object/Item.php b/object/Item.php
index 14566a5bb..2d62224fc 100644
--- a/object/Item.php
+++ b/object/Item.php
@@ -132,12 +132,17 @@ class Item extends BaseObject {
else
$profile_link = zrl($profile_link);
+ $profile_link = zrl($item['author']['xchan_profile']);
+
+
$normalised = normalise_link((strlen($item['author-link'])) ? $item['author-link'] : $item['url']);
if(($normalised != 'mailbox') && (x($a->contacts,$normalised)))
$profile_avatar = $a->contacts[$normalised]['thumb'];
else
$profile_avatar = (((strlen($item['author-avatar'])) && $diff_author) ? $item['author-avatar'] : $a->get_cached_avatar_image($this->get_data_value('thumb')));
+ $profile_avatar = $item['author']['xchan_photo'];
+
$locate = array('location' => $item['location'], 'coord' => $item['coord'], 'html' => '');
call_hooks('render_location',$locate);
$location = ((strlen($locate['html'])) ? $locate['html'] : render_location_google($locate));