From 452d275b5ee4575e6c763076b397e1cd2320c4bc Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 12 Dec 2014 00:26:07 -0800 Subject: don't import to sys channel from self-censored authors --- doc/html/items_8php.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/html/items_8php.html') 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

can_comment_on_post($observer_xchan,$item);

-

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 perm_is_allowed() 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 can_comment_on_post() We also check the comments_closed date/time on the item if this is set.

+

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 perm_is_allowed() 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 can_comment_on_post() We also check the comments_closed date/time on the item if this is set.

Referenced by Conversation\add_thread(), and item_post().

-- cgit v1.2.3