aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZvi ben Yaakov (a.k.a rdc) <coderzvi@infosoc.net>2012-06-19 22:24:31 +0300
committerZvi ben Yaakov (a.k.a rdc) <coderzvi@infosoc.net>2012-06-19 22:24:31 +0300
commit5b057e5dee09e0cab5b78bb9b2ac2e27d59a11f7 (patch)
tree96479ada7cfc3bc0ffb091d652b08f7dd9def87e
parent45b4867bd31d54f76a366cdda68b5f90f2bca3b2 (diff)
downloadvolse-hubzilla-5b057e5dee09e0cab5b78bb9b2ac2e27d59a11f7.tar.gz
volse-hubzilla-5b057e5dee09e0cab5b78bb9b2ac2e27d59a11f7.tar.bz2
volse-hubzilla-5b057e5dee09e0cab5b78bb9b2ac2e27d59a11f7.zip
Added App::get_cached_avater_image usage in profile_sidebar function for
creating the $diaspora array that is used to populate diaspora_vcard.tpl. This allows the correct profile image revision to be used when dfrn_request friend requests are made.
-rw-r--r--boot.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/boot.php b/boot.php
index 465bdf0c1..ecd95acec 100644
--- a/boot.php
+++ b/boot.php
@@ -1155,9 +1155,9 @@ if(! function_exists('profile_sidebar')) {
'fullname' => $profile['name'],
'firstname' => $firstname,
'lastname' => $lastname,
- 'photo300' => $a->get_baseurl() . '/photo/custom/300/' . $profile['uid'] . '.jpg',
- 'photo100' => $a->get_baseurl() . '/photo/custom/100/' . $profile['uid'] . '.jpg',
- 'photo50' => $a->get_baseurl() . '/photo/custom/50/' . $profile['uid'] . '.jpg',
+ 'photo300' => $a->get_cached_avatar_image($a->get_baseurl() . '/photo/custom/300/' . $profile['uid'] . '.jpg'),
+ 'photo100' => $a->get_cached_avatar_image($a->get_baseurl() . '/photo/custom/100/' . $profile['uid'] . '.jpg'),
+ 'photo50' => $a->get_cached_avatar_image($a->get_baseurl() . '/photo/custom/50/' . $profile['uid'] . '.jpg'),
);
if (!$block){