diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/ConversationObject.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/ConversationObject.php b/include/ConversationObject.php index 3f5e901d3..30026e908 100644 --- a/include/ConversationObject.php +++ b/include/ConversationObject.php @@ -144,10 +144,16 @@ class Conversation extends BaseObject { if($this->writable) $this->commentable = true; - if(($this->observer) && (! $this->writable)) { + if($item->get_data_value('item_flags') & ITEM_NOCOMMENT) { + $this->commentable = false; + } + elseif(($this->observer) && (! $this->writable)) { $this->commentable = can_comment_on_post($this->observer['xchan_hash'],$item->data); } + + + $item->set_conversation($this); $this->threads[] = $item; return end($this->threads); |