aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-06-15 23:37:51 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-06-15 23:37:51 -0700
commitbc72d3fd2659326e223120c337a59090d97985fe (patch)
treeabed1839e297d4a65fed776320115ba91c2dfc41 /include
parentbdedda7c6b4bf85b5fae151e6d93efe3f01dffa3 (diff)
downloadvolse-hubzilla-bc72d3fd2659326e223120c337a59090d97985fe.tar.gz
volse-hubzilla-bc72d3fd2659326e223120c337a59090d97985fe.tar.bz2
volse-hubzilla-bc72d3fd2659326e223120c337a59090d97985fe.zip
move profile photos to new methods
Diffstat (limited to 'include')
-rw-r--r--include/attach.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/attach.php b/include/attach.php
index 507b328d3..cf463785e 100644
--- a/include/attach.php
+++ b/include/attach.php
@@ -342,10 +342,16 @@ function attach_by_hash_nodata($hash, $rev = 0) {
*/
function attach_store($channel, $observer_hash, $options = '', $arr = null) {
+ require_once('include/photos.php');
+
$ret = array('success' => false);
$channel_id = $channel['channel_id'];
$sql_options = '';
$source = (($arr) ? $arr['source'] : '');
+ $album = (($arr) ? $arr['album'] : '');
+ $hash = (($arr && $arr['hash']) ? $arr['hash'] : null);
+
+logger('arr: ' . print_r($arr,true));
// This is currently used only in mod/wall_attach
@@ -432,7 +438,7 @@ function attach_store($channel, $observer_hash, $options = '', $arr = null) {
$mimetype = z_mime_content_type($filename);
}
- if(! isset($hash))
+ if(! $hash)
$hash = random_string();