From 3c04676a32b048677813c1d8a4c525963a7b2f01 Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 7 Oct 2012 21:44:11 -0700 Subject: get posts to show up --- object/Item.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'object') 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)); -- cgit v1.2.3