From 24dd15c2051bad20cad266e36227577cd8e46632 Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 4 Oct 2013 04:46:55 -0700 Subject: doc update --- doc/html/items_8php.html | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'doc/html/items_8php.html') diff --git a/doc/html/items_8php.html b/doc/html/items_8php.html index 41b25e9fc..f1d5aee87 100644 --- a/doc/html/items_8php.html +++ b/doc/html/items_8php.html @@ -393,6 +393,8 @@ 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()

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

@@ -1045,7 +1047,7 @@ Functions
-

Referenced by zot_import().

+

Referenced by zot_import().

@@ -1063,7 +1065,7 @@ Functions
-

Referenced by zot_import().

+

Referenced by zot_import().

@@ -1081,7 +1083,7 @@ Functions
-

Referenced by zot_import().

+

Referenced by zot_import().

@@ -1233,7 +1235,7 @@ Functions
-

Referenced by consume_feed(), event_store(), item_post(), like_content(), mood_init(), photo_upload(), photos_create_item(), photos_post(), post_activity_item(), process_delivery(), profile_activity(), and subthread_content().

+

Referenced by event_store(), item_post(), like_content(), mood_init(), photo_upload(), photos_create_item(), photos_post(), post_activity_item(), process_delivery(), profile_activity(), and subthread_content().

-- cgit v1.2.3