diff options
author | friendica <info@friendica.com> | 2013-08-05 21:42:55 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-08-05 21:42:55 -0700 |
commit | 576b815f9b40997e45cd87f3e8e2f373afca1f11 (patch) | |
tree | ff3327e85d731cc309ef083e0481b21f1cec0d9a /include/items.php | |
parent | d467544bb78bd14c89393179af5af26b339e1ecf (diff) | |
download | volse-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-x | include/items.php | 8 |
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.'); |