diff options
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(); |