aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-02-11 16:59:48 -0800
committerfriendica <info@friendica.com>2013-02-11 16:59:48 -0800
commitbf8f066dcda342192e70c8ed39d9ceb6cb719af5 (patch)
tree1fe00c5dd04a3f2df80ad0ac3e8c369d17912d24
parent698a372ba1dc5ebad679ceddda0700a540c71ce7 (diff)
downloadvolse-hubzilla-bf8f066dcda342192e70c8ed39d9ceb6cb719af5.tar.gz
volse-hubzilla-bf8f066dcda342192e70c8ed39d9ceb6cb719af5.tar.bz2
volse-hubzilla-bf8f066dcda342192e70c8ed39d9ceb6cb719af5.zip
more progresss on tag delivery
-rwxr-xr-xinclude/items.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/include/items.php b/include/items.php
index 611def924..6c872fdce 100755
--- a/include/items.php
+++ b/include/items.php
@@ -1675,17 +1675,15 @@ function tag_deliver($uid,$item_id) {
// prevent delivery looping - only proceed
// if the message originated elsewhere and is a top-level post
-// FIXME
-
- if(($item['item_flags'] & ITEM_WALL) || ($item['item_flags'] & ITEM_ORIGIN) || ($item['item_flags'] & ITEM_THREAD_TOP) || ($item['id'] != $item['parent']))
+ if(($item['item_flags'] & ITEM_WALL) || ($item['item_flags'] & ITEM_ORIGIN) || (!($item['item_flags'] & ITEM_THREAD_TOP)) || ($item['id'] != $item['parent']))
return;
-
+ logger('tag_deliver: creating second delivery chain.');
// now change this copy of the post to a forum head message and deliver to all the tgroup members
// also reset all the privacy bits to the forum default permissions
- $private = ($u[0]['allow_cid'] || $u[0]['allow_gid'] || $u[0]['deny_cid'] || $u[0]['deny_gid']) ? 1 : 0;
+ $private = (($u[0]['allow_cid'] || $u[0]['allow_gid'] || $u[0]['deny_cid'] || $u[0]['deny_gid']) ? 1 : 0);
$flag_bits = ITEM_WALL|ITEM_ORIGIN|ITEM_UPLINK;