diff options
author | friendica <info@friendica.com> | 2014-08-22 18:01:21 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-08-22 18:01:21 -0700 |
commit | 255ab8e9c9b86c7d38e03eb0d4913a823086366d (patch) | |
tree | cc6dd1a09677ef61644f06cef5fa39d9cbcc180c | |
parent | 38f931618c779a0e10fb2549af8f35ac1c700268 (diff) | |
download | volse-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.
-rwxr-xr-x | include/items.php | 3 |
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'; |