1
0
Fork 0

photo comments

This commit is contained in:
Mike Macgirvin 2010-08-06 06:30:25 -07:00
commit a48efe0bc0
2 changed files with 141 additions and 7 deletions

View file

@ -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();