aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-08-05 21:42:55 -0700
committerfriendica <info@friendica.com>2013-08-05 21:42:55 -0700
commit576b815f9b40997e45cd87f3e8e2f373afca1f11 (patch)
treeff3327e85d731cc309ef083e0481b21f1cec0d9a /include/items.php
parentd467544bb78bd14c89393179af5af26b339e1ecf (diff)
downloadvolse-hubzilla-576b815f9b40997e45cd87f3e8e2f373afca1f11.tar.gz
volse-hubzilla-576b815f9b40997e45cd87f3e8e2f373afca1f11.tar.bz2
volse-hubzilla-576b815f9b40997e45cd87f3e8e2f373afca1f11.zip
add extra logging to tag_deliver
Diffstat (limited to 'include/items.php')
-rwxr-xr-xinclude/items.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/items.php b/include/items.php
index bacb68909..2d8189010 100755
--- a/include/items.php
+++ b/include/items.php
@@ -2054,16 +2054,20 @@ function tag_deliver($uid,$item_id) {
));
- if(! perm_is_allowed($uid,$item['author_xchan'],'tag_deliver'))
+ if(! perm_is_allowed($uid,$item['author_xchan'],'tag_deliver')) {
+ logger('tag_delivery denied for uid ' . $uid . ' and xchan ' . $item['author_xchan']);
return;
+ }
// tgroup delivery - setup a second delivery chain
// prevent delivery looping - only proceed
// if the message originated elsewhere and is a top-level post
- 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'])) {
+ logger('tag_deliver: item was local or a comment. rejected.');
return;
+ }
logger('tag_deliver: creating second delivery chain.');