From 2adc7a51ad0e3893efc9aac852e3b80d75d9a65d Mon Sep 17 00:00:00 2001 From: redmatrix Date: Mon, 15 Jun 2015 19:52:17 -0700 Subject: photo upload: pass in the contact_allow and resource_id via include/attach.php --- mod/wall_attach.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mod/wall_attach.php') diff --git a/mod/wall_attach.php b/mod/wall_attach.php index c3c0bff03..04ab59146 100644 --- a/mod/wall_attach.php +++ b/mod/wall_attach.php @@ -38,7 +38,7 @@ function wall_attach_post(&$a) { // } // } - $r = attach_store($channel,(($observer) ? $observer['xchan_hash'] : ''),array('source' => 'editor')); + $r = attach_store($channel,(($observer) ? $observer['xchan_hash'] : ''),array('source' => 'editor', 'visible' => 0, 'contact_allow' => array($channel['channel_hash']))); if(! $r['success']) { notice( $r['message'] . EOL); -- cgit v1.2.3