aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorZvi ben Yaakov (a.k.a rdc) <coderzvi@infosoc.net>2012-06-19 23:29:24 +0300
committerZvi ben Yaakov (a.k.a rdc) <coderzvi@infosoc.net>2012-06-19 23:29:24 +0300
commitd20cdf09eafbc57c1b6dbcb78a5cdaa731ae876d (patch)
tree6308aca93a11587a579d4c4336cec14c9072151f /include/items.php
parent5b057e5dee09e0cab5b78bb9b2ac2e27d59a11f7 (diff)
parent79357ec60dd4338d25e0ddbbbfde38d5db541e67 (diff)
downloadvolse-hubzilla-d20cdf09eafbc57c1b6dbcb78a5cdaa731ae876d.tar.gz
volse-hubzilla-d20cdf09eafbc57c1b6dbcb78a5cdaa731ae876d.tar.bz2
volse-hubzilla-d20cdf09eafbc57c1b6dbcb78a5cdaa731ae876d.zip
Merge git://github.com/friendica/friendica
Diffstat (limited to 'include/items.php')
-rwxr-xr-xinclude/items.php6
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 {