Check for conversation with unique conversation ID

This commit is contained in:
Zach Copley 2010-02-26 13:06:06 -08:00
parent e4c462570f
commit b0acaeafe3

View File

@ -540,11 +540,8 @@ class NoticeListItem extends Widget
function showContext() function showContext()
{ {
$hasConversation = false; $hasConversation = false;
if( !empty($this->notice->conversation) if (!empty($this->notice->conversation)) {
&& $this->notice->conversation != $this->notice->id){ $conversation = Notice::conversationStream($this->notice->conversation, 1, 1);
$hasConversation = true;
}else{
$conversation = Notice::conversationStream($this->notice->id, 1, 1);
if ($conversation->N > 0) { if ($conversation->N > 0) {
$hasConversation = true; $hasConversation = true;
} }