Check for conversation with unique conversation ID
This commit is contained in:
		@@ -540,16 +540,13 @@ 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;
 | 
					            if ($conversation->N > 0) {
 | 
				
			||||||
        }else{
 | 
					 | 
				
			||||||
            $conversation = Notice::conversationStream($this->notice->id, 1, 1);
 | 
					 | 
				
			||||||
            if($conversation->N > 0){
 | 
					 | 
				
			||||||
                $hasConversation = true;
 | 
					                $hasConversation = true;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        if ($hasConversation){
 | 
					        if ($hasConversation) {
 | 
				
			||||||
            $this->out->text(' ');
 | 
					            $this->out->text(' ');
 | 
				
			||||||
            $convurl = common_local_url('conversation',
 | 
					            $convurl = common_local_url('conversation',
 | 
				
			||||||
                                         array('id' => $this->notice->conversation));
 | 
					                                         array('id' => $this->notice->conversation));
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user