diff options
author | friendica <info@friendica.com> | 2012-06-18 17:19:56 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-06-18 17:19:56 -0700 |
commit | 341a5a26724155a4866681a741e33552be41f6ec (patch) | |
tree | 6b733a68fe8cf377d9ba2f7ce43c350d6783c778 /include/items.php | |
parent | 371bdfb19dc76fdddb4967c74de40a4ab762cfcd (diff) | |
download | volse-hubzilla-341a5a26724155a4866681a741e33552be41f6ec.tar.gz volse-hubzilla-341a5a26724155a4866681a741e33552be41f6ec.tar.bz2 volse-hubzilla-341a5a26724155a4866681a741e33552be41f6ec.zip |
public forum author using private posting, correct the comment permissions downstream.
Diffstat (limited to 'include/items.php')
-rwxr-xr-x | include/items.php | 6 |
1 files changed, 6 insertions, 0 deletions
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 { |