aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-10-14 18:19:32 +1100
committerredmatrix <redmatrix@redmatrix.me>2015-10-14 18:19:32 +1100
commitd616099de6984ad8d45e3b8908367bf5a0b8ab31 (patch)
treeeb22325c0a255ae87aa896c3371463f1f90eae9b /include
parente3070eb17047bac31ed597bae3dd1b43e32835ff (diff)
parente2a15d0ec901e284e3b5893b72418c2fe93d9598 (diff)
downloadvolse-hubzilla-d616099de6984ad8d45e3b8908367bf5a0b8ab31.tar.gz
volse-hubzilla-d616099de6984ad8d45e3b8908367bf5a0b8ab31.tar.bz2
volse-hubzilla-d616099de6984ad8d45e3b8908367bf5a0b8ab31.zip
Merge pull request #80 from git-marijus/master
fix /channel not updating after posting comment
Diffstat (limited to 'include')
-rw-r--r--include/attach.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/attach.php b/include/attach.php
index 266efee53..0ed1690ec 100644
--- a/include/attach.php
+++ b/include/attach.php
@@ -405,7 +405,6 @@ function attach_store($channel, $observer_hash, $options = '', $arr = null) {
require_once('include/photos.php');
-
call_hooks('photo_upload_begin',$arr);
$ret = array('success' => false);
@@ -416,6 +415,7 @@ function attach_store($channel, $observer_hash, $options = '', $arr = null) {
$newalbum = (($arr) ? $arr['newalbum'] : '');
$hash = (($arr && $arr['hash']) ? $arr['hash'] : null);
$upload_path = (($arr && $arr['directory']) ? $arr['directory'] : '');
+ $visible = (($arr && $arr['visible']) ? $arr['visible'] : '');
$observer = array();
@@ -792,7 +792,7 @@ function attach_store($channel, $observer_hash, $options = '', $arr = null) {
if($is_photo) {
- $args = array( 'source' => $source, 'visible' => 0, 'resource_id' => $hash, 'album' => basename($pathname), 'os_path' => $os_basepath . $os_relpath, 'filename' => $filename, 'getimagesize' => $gis, 'directory' => $direct);
+ $args = array( 'source' => $source, 'visible' => $visible, 'resource_id' => $hash, 'album' => basename($pathname), 'os_path' => $os_basepath . $os_relpath, 'filename' => $filename, 'getimagesize' => $gis, 'directory' => $direct);
if($arr['contact_allow'])
$args['contact_allow'] = $arr['contact_allow'];
if($arr['group_allow'])