aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-06-11 05:28:08 -0700
committerfriendica <info@friendica.com>2012-06-11 05:28:08 -0700
commitafa88154114d5632cb13e7c3f56143cccdfd7daa (patch)
tree4797f81e7c15fd7e9eb64d98963d1a3ceaac2a65 /include/items.php
parent0ac3f5fc1cfe17f6309986a64b26e11e688662bd (diff)
downloadvolse-hubzilla-afa88154114d5632cb13e7c3f56143cccdfd7daa.tar.gz
volse-hubzilla-afa88154114d5632cb13e7c3f56143cccdfd7daa.tar.bz2
volse-hubzilla-afa88154114d5632cb13e7c3f56143cccdfd7daa.zip
bug #447 - make followed feeds private
Diffstat (limited to 'include/items.php')
-rwxr-xr-xinclude/items.php19
1 files changed, 16 insertions, 3 deletions
diff --git a/include/items.php b/include/items.php
index ccc11d5be..95a885a1b 100755
--- a/include/items.php
+++ b/include/items.php
@@ -693,6 +693,8 @@ function encode_rel_links($links) {
return xmlify($o);
}
+
+
function item_store($arr,$force_parent = false) {
// If a Diaspora signature structure was passed in, pull it out of the
@@ -806,6 +808,14 @@ function item_store($arr,$force_parent = false) {
$deny_cid = $r[0]['deny_cid'];
$deny_gid = $r[0]['deny_gid'];
$arr['wall'] = $r[0]['wall'];
+
+ // if the parent is private, force privacy for the entire conversation
+ // This differs from the above settings as it subtly allows comments from
+ // email correspondents to be private even if the overall thread is not.
+
+ if($r[0]['private'])
+ $arr['private'] = 1;
+
}
else {
@@ -1835,9 +1845,12 @@ function consume_feed($xml,$importer,&$contact, &$hub, $datedir = 0, $pass = 0)
$datarray['last-child'] = 1;
}
- if(($contact['network'] === NETWORK_FEED) || (! strlen($contact['notify']))) {
- // one way feed - no remote comment ability
- $datarray['last-child'] = 0;
+ if($contact['network'] === NETWORK_FEED) {
+ if(! strlen($contact['notify'])) {
+ // one way feed - no remote comment ability
+ $datarray['last-child'] = 0;
+ }
+ $datarray['private'] = 1;
}
// This is my contact on another system, but it's really me.