aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-08-22 18:01:21 -0700
committerfriendica <info@friendica.com>2014-08-22 18:01:21 -0700
commit255ab8e9c9b86c7d38e03eb0d4913a823086366d (patch)
treecc6dd1a09677ef61644f06cef5fa39d9cbcc180c /include
parent38f931618c779a0e10fb2549af8f35ac1c700268 (diff)
downloadvolse-hubzilla-255ab8e9c9b86c7d38e03eb0d4913a823086366d.tar.gz
volse-hubzilla-255ab8e9c9b86c7d38e03eb0d4913a823086366d.tar.bz2
volse-hubzilla-255ab8e9c9b86c7d38e03eb0d4913a823086366d.zip
issue #573 - this may not fix everything in that issue but should resolve some of it.
Diffstat (limited to 'include')
-rwxr-xr-xinclude/items.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/items.php b/include/items.php
index 12e00ddc9..1f2b33579 100755
--- a/include/items.php
+++ b/include/items.php
@@ -296,6 +296,9 @@ function post_activity_item($arr) {
return $ret;
}
+ $arr['public_policy'] = ((x($_REQUEST,'public_policy')) ? escape_tags($_REQUEST['public_policy']) : map_scope($channel['channel_r_stream'],true));
+ if($arr['public_policy'])
+ $arr['item_private'] = 1;
if(! array_key_exists('mimetype',$arr))
$arr['mimetype'] = 'text/bbcode';