diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-09-13 22:57:31 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-09-13 22:57:31 -0700 |
commit | c5031139ebb46ce4994d3bd62059ae4eaba71359 (patch) | |
tree | aadb065cbaf0fbf788b6f4fdd7a5e1a332ba7373 /mod/dfrn_confirm.php | |
parent | 38fde6672eb3d46b8b154ba2f22df99f91f64852 (diff) | |
download | volse-hubzilla-c5031139ebb46ce4994d3bd62059ae4eaba71359.tar.gz volse-hubzilla-c5031139ebb46ce4994d3bd62059ae4eaba71359.tar.bz2 volse-hubzilla-c5031139ebb46ce4994d3bd62059ae4eaba71359.zip |
abstractify items, check photos for birthday paradox
Diffstat (limited to 'mod/dfrn_confirm.php')
-rw-r--r-- | mod/dfrn_confirm.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mod/dfrn_confirm.php b/mod/dfrn_confirm.php index 44a6ad147..1f0ebee14 100644 --- a/mod/dfrn_confirm.php +++ b/mod/dfrn_confirm.php @@ -100,7 +100,7 @@ function dfrn_confirm_post(&$a) { $img->scaleImageSquare(175); - $hash = hash('md5',uniqid(mt_rand(),true)); + $hash = photo_new_resource(); $r = $img->store($local_uid, $dfrn_record, $hash, $filename, t('Contact Photos') , 4); @@ -332,12 +332,13 @@ function dfrn_confirm_post(&$a) { $img->scaleImageSquare(175); - $hash = hash('md5',uniqid(mt_rand(),true)); + $hash = photo_new_resource(); $r = $img->store($uid, $contact_id, $hash, $filename, t('Contact Photos'), 4 ); if($r === false) $photo_failure = true; + $img->scaleImage(80); $r = $img->store($uid, $contact_id, $hash, $filename, t('Contact Photos'), 5 ); |