aboutsummaryrefslogtreecommitdiffstats
path: root/mod/profile_photo.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2010-11-04 23:50:32 -0700
committerFriendika <info@friendika.com>2010-11-04 23:50:32 -0700
commitb94cb8d234d70bc534ad1cef767b9f62d10eef26 (patch)
tree9e8cf0d529421c7b8d8e389478be8c4b196d11e6 /mod/profile_photo.php
parent71ae08d506130e45f68cf4e09d71f3a1c2e2d782 (diff)
downloadvolse-hubzilla-b94cb8d234d70bc534ad1cef767b9f62d10eef26.tar.gz
volse-hubzilla-b94cb8d234d70bc534ad1cef767b9f62d10eef26.tar.bz2
volse-hubzilla-b94cb8d234d70bc534ad1cef767b9f62d10eef26.zip
add micro profile photo
Diffstat (limited to 'mod/profile_photo.php')
-rw-r--r--mod/profile_photo.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/mod/profile_photo.php b/mod/profile_photo.php
index b21d9162a..32ace62f0 100644
--- a/mod/profile_photo.php
+++ b/mod/profile_photo.php
@@ -68,6 +68,13 @@ function profile_photo_post(&$a) {
if($r === false)
notice( t('Image size reduction [80] failed.') . EOL );
+ $im->scaleImage(48);
+
+ $r = $im->store(local_user(), 0, $base_image['resource-id'],$base_image['filename'], t('Profile Photos'), 6, 1);
+
+ if($r === false)
+ notice( t('Image size reduction [48] failed.') . EOL );
+
// Unset the profile photo flag from any other photos I own
$r = q("UPDATE `photo` SET `profile` = 0 WHERE `profile` = 1 AND `resource-id` != '%s' AND `uid` = %d",