aboutsummaryrefslogtreecommitdiffstats
path: root/doc/html/items_8php.html
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-12-12 00:26:07 -0800
committerfriendica <info@friendica.com>2014-12-12 00:26:07 -0800
commit452d275b5ee4575e6c763076b397e1cd2320c4bc (patch)
tree6beb56c44120b863897685b137f07751dcbca332 /doc/html/items_8php.html
parent7f1a42340a3f0967e23cf836b2c417a1b9b9b20b (diff)
downloadvolse-hubzilla-452d275b5ee4575e6c763076b397e1cd2320c4bc.tar.gz
volse-hubzilla-452d275b5ee4575e6c763076b397e1cd2320c4bc.tar.bz2
volse-hubzilla-452d275b5ee4575e6c763076b397e1cd2320c4bc.zip
don't import to sys channel from self-censored authors
Diffstat (limited to 'doc/html/items_8php.html')
-rw-r--r--doc/html/items_8php.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/html/items_8php.html b/doc/html/items_8php.html
index dd6387ee1..9cd5f6dea 100644
--- a/doc/html/items_8php.html
+++ b/doc/html/items_8php.html
@@ -467,7 +467,7 @@ Functions</h2></td></tr>
</table>
</div><div class="memdoc">
<p>can_comment_on_post($observer_xchan,$item);</p>
-<p>This function examines the comment_policy attached to an item and decides if the current observer has sufficient privileges to comment. This will normally be called on a remote site where <a class="el" href="permissions_8php.html#a67ada9ed51e77885b6b0f6a28cee1835">perm_is_allowed()</a> will not be suitable because the post owner does not have a local channel_id. Generally we should look at the item - in particular the author['book_flags'] and see if ABOOK_FLAG_SELF is set. If it is, you should be able to use perm_is_allowed( ... 'post_comments'), and if it isn't you need to call <a class="el" href="items_8php.html#a1e75047cf175aaee8dd16aa761913ff9">can_comment_on_post()</a> We also check the comments_closed date/time on the item if this is set. </p>
+<p>This function examines the comment_policy attached to an item and decides if the current observer has sufficient privileges to comment. This will normally be called on a remote site where <a class="el" href="permissions_8php.html#a67ada9ed51e77885b6b0f6a28cee1835" title="Checks if given permission is allowed for given observer on a channel.">perm_is_allowed()</a> will not be suitable because the post owner does not have a local channel_id. Generally we should look at the item - in particular the author['book_flags'] and see if ABOOK_FLAG_SELF is set. If it is, you should be able to use perm_is_allowed( ... 'post_comments'), and if it isn't you need to call <a class="el" href="items_8php.html#a1e75047cf175aaee8dd16aa761913ff9">can_comment_on_post()</a> We also check the comments_closed date/time on the item if this is set. </p>
<p>Referenced by <a class="el" href="classConversation.html#a8335cdd43f1836e3c255638e61a09e16">Conversation\add_thread()</a>, and <a class="el" href="item_8php.html#a693cd09805755ab85bbb5ecae69a48c3">item_post()</a>.</p>