diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-08-06 06:30:25 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-08-06 06:30:25 -0700 |
commit | a48efe0bc0ff035137d519988619c6e79c371425 (patch) | |
tree | fc62d2b540247824ea729a23c4bf78ad527a5a80 /mod/item.php | |
parent | 72b20a6eb104744a2bc64e72d35fe4ec1cc36660 (diff) | |
download | volse-hubzilla-a48efe0bc0ff035137d519988619c6e79c371425.tar.gz volse-hubzilla-a48efe0bc0ff035137d519988619c6e79c371425.tar.bz2 volse-hubzilla-a48efe0bc0ff035137d519988619c6e79c371425.zip |
photo comments
Diffstat (limited to 'mod/item.php')
-rw-r--r-- | mod/item.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mod/item.php b/mod/item.php index 5f53eccf3..ca6f703b3 100644 --- a/mod/item.php +++ b/mod/item.php @@ -175,6 +175,13 @@ function item_post(&$a) { dbesc(($parent == $post_id) ? $uri : $parent_item['uri']), intval($post_id) ); + // photo comments turn the corresponding item visible to the profile wall + if(! $parent_item['visible']) { + $r = q("UPDATE `item` SET `visible = 1 WHERE `id` = %d LIMIT 1", + intval($parent_item['id']) + ); + } + } $url = $a->get_baseurl(); |