From 2963be60e53916c9c6d579745695a54800876f82 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Wed, 17 Jun 2015 18:26:56 -0700 Subject: more photos work --- mod/wall_attach.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mod/wall_attach.php') 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); -- cgit v1.2.3