photo comments
This commit is contained in:
parent
72b20a6eb1
commit
a48efe0bc0
2 changed files with 141 additions and 7 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue