aboutsummaryrefslogtreecommitdiffstats
path: root/include/attach.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-08-26 22:13:20 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-08-26 22:13:20 -0700
commit9cebd249871389bb756cb4d73e6719200120e413 (patch)
tree153df78defa07c2820b9866330c89170821b1c06 /include/attach.php
parent54c88dfae91da709eeb959b5ad8b2eb034ac0041 (diff)
downloadvolse-hubzilla-9cebd249871389bb756cb4d73e6719200120e413.tar.gz
volse-hubzilla-9cebd249871389bb756cb4d73e6719200120e413.tar.bz2
volse-hubzilla-9cebd249871389bb756cb4d73e6719200120e413.zip
change attach_store to allow a predefined item to accompany a photo
Diffstat (limited to 'include/attach.php')
-rw-r--r--include/attach.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/attach.php b/include/attach.php
index a23f0f81a..620c7620c 100644
--- a/include/attach.php
+++ b/include/attach.php
@@ -758,6 +758,8 @@ function attach_store($channel, $observer_hash, $options = '', $arr = null) {
$args['created'] = $created;
$args['edited'] = $edited;
+ if($arr['item'])
+ $args['item'] = $arr['item'];
$p = photo_upload($channel,$observer,$args);
if($p['success']) {