forum cleanup
This commit is contained in:
parent
4f4a873da8
commit
191a9b048f
1 changed files with 2 additions and 5 deletions
|
@ -927,10 +927,7 @@ function tgroup_deliver($uid,$item_id) {
|
||||||
if(! count($u))
|
if(! count($u))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// We will only forward public tgroup posts, as this opens a second delivery chain
|
$i = q("select * from item where id = %d and uid = %d limit 1",
|
||||||
// and privacy can only be controlled by the first chain.
|
|
||||||
|
|
||||||
$i = q("select * from item where id = %d and uid = %d and private = 0 limit 1",
|
|
||||||
intval($item_id),
|
intval($item_id),
|
||||||
intval($uid)
|
intval($uid)
|
||||||
);
|
);
|
||||||
|
@ -961,7 +958,7 @@ function tgroup_deliver($uid,$item_id) {
|
||||||
if(! $deliver_to_tgroup)
|
if(! $deliver_to_tgroup)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// now change this post to a forum head message and deliver to all the tgroup members
|
// now change this copy of the post to a forum head message and deliver to all the tgroup members
|
||||||
|
|
||||||
|
|
||||||
q("update item set wall = 1, origin = 1, forum_mode = 1 where id = %d limit 1",
|
q("update item set wall = 1, origin = 1, forum_mode = 1 where id = %d limit 1",
|
||||||
|
|
Loading…
Reference in a new issue