fix attachment permissions when they also contain an image.

This commit is contained in:
redmatrix
2015-06-15 20:43:49 -07:00
parent 2adc7a51ad
commit bdedda7c6b
3 changed files with 18 additions and 1 deletions

View File

@@ -38,7 +38,7 @@ function wall_attach_post(&$a) {
// }
// }
$r = attach_store($channel,(($observer) ? $observer['xchan_hash'] : ''),array('source' => 'editor', 'visible' => 0, 'contact_allow' => array($channel['channel_hash'])));
$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);