From 341a5a26724155a4866681a741e33552be41f6ec Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 18 Jun 2012 17:19:56 -0700 Subject: public forum author using private posting, correct the comment permissions downstream. --- include/items.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/items.php') diff --git a/include/items.php b/include/items.php index 3db1a2802..05134ef8f 100755 --- a/include/items.php +++ b/include/items.php @@ -814,6 +814,12 @@ function item_store($arr,$force_parent = false) { if($r[0]['private']) $arr['private'] = 1; + // Edge case. We host a public forum that was originally posted to privately. + // The original author commented, but as this is a comment, the permissions + // weren't fixed up so it will still show the comment as private unless we fix it here. + + if((intval($r[0]['forum_mode']) == 1) && (! $r[0]['private'])) + $arr['private'] = 0; } else { -- cgit v1.2.3