aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZvi ben Yaakov (a.k.a rdc) <coderzvi@infosoc.net>2012-06-19 22:24:31 +0300
committerfriendica <info@friendica.com>2012-06-19 16:05:39 -0700
commit4977ef4142720473f0f3788c12bac4714cdc0d8f (patch)
treef57a4d2cd29528307319714e0d93f50c88850d35
parentff2f7dfeef4a6c0f13f7ed0eb346a8ed04e60655 (diff)
downloadvolse-hubzilla-4977ef4142720473f0f3788c12bac4714cdc0d8f.tar.gz
volse-hubzilla-4977ef4142720473f0f3788c12bac4714cdc0d8f.tar.bz2
volse-hubzilla-4977ef4142720473f0f3788c12bac4714cdc0d8f.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 ab71c7e7d..3d0d5098d 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){