aboutsummaryrefslogtreecommitdiffstats
path: root/mod/wall_attach.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-06-17 18:26:56 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-06-17 18:26:56 -0700
commit2963be60e53916c9c6d579745695a54800876f82 (patch)
tree87acafa554c318466f10eda49594224b3e454ffc /mod/wall_attach.php
parent6ab20eb1b50da91ba35911fea8b09f2ef8e461fd (diff)
downloadvolse-hubzilla-2963be60e53916c9c6d579745695a54800876f82.tar.gz
volse-hubzilla-2963be60e53916c9c6d579745695a54800876f82.tar.bz2
volse-hubzilla-2963be60e53916c9c6d579745695a54800876f82.zip
more photos work
Diffstat (limited to 'mod/wall_attach.php')
-rw-r--r--mod/wall_attach.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/mod/wall_attach.php b/mod/wall_attach.php
index 9ce16d190..4e30556b6 100644
--- a/mod/wall_attach.php
+++ b/mod/wall_attach.php
@@ -38,7 +38,10 @@ function wall_attach_post(&$a) {
// }
// }
- $r = attach_store($channel,(($observer) ? $observer['xchan_hash'] : ''),'', array('source' => 'editor', 'visible' => 0, 'contact_allow' => array($channel['channel_hash'])));
+ $def_album = get_pconfig($channel['channel_id'],'system','photo_path');
+ $def_attach = get_pconfig($channel['channel_id'],'system','attach_path');
+
+ $r = attach_store($channel,(($observer) ? $observer['xchan_hash'] : ''),'', array('source' => 'editor', 'visible' => 0, 'album' => $def_album, 'directory' => $def_attach, 'allow_cid' => '<' . $channel['channel_hash'] . '>'));
if(! $r['success']) {
notice( $r['message'] . EOL);