diff options
author | friendica <info@friendica.com> | 2012-10-07 21:44:11 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-10-07 21:44:11 -0700 |
commit | 3c04676a32b048677813c1d8a4c525963a7b2f01 (patch) | |
tree | 1b28b9e40d276be6e10198a52524f8568066d798 /object/Item.php | |
parent | a56c0425e6f80e77a1e52b13cd5a14cb6e838b9a (diff) | |
download | volse-hubzilla-3c04676a32b048677813c1d8a4c525963a7b2f01.tar.gz volse-hubzilla-3c04676a32b048677813c1d8a4c525963a7b2f01.tar.bz2 volse-hubzilla-3c04676a32b048677813c1d8a4c525963a7b2f01.zip |
get posts to show up
Diffstat (limited to 'object/Item.php')
-rw-r--r-- | object/Item.php | 5 |
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)); |