]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Check for conversation with unique conversation ID
authorZach Copley <zach@status.net>
Fri, 26 Feb 2010 21:06:06 +0000 (13:06 -0800)
committerZach Copley <zach@status.net>
Fri, 26 Feb 2010 21:06:06 +0000 (13:06 -0800)
lib/noticelist.php

index 28a563d875aff8c2e7ce621ba204ada667f9ee77..7d1d2828fcb94d2cbdbef8e77d409288bd9608f1 100644 (file)
@@ -540,16 +540,13 @@ class NoticeListItem extends Widget
     function showContext()
     {
         $hasConversation = false;
-        if( !empty($this->notice->conversation)
-            && $this->notice->conversation != $this->notice->id){
-            $hasConversation = true;
-        }else{
-            $conversation = Notice::conversationStream($this->notice->id, 1, 1);
-            if($conversation->N > 0){
+        if (!empty($this->notice->conversation)) {
+            $conversation = Notice::conversationStream($this->notice->conversation, 1, 1);
+            if ($conversation->N > 0) {
                 $hasConversation = true;
             }
         }
-        if ($hasConversation){
+        if ($hasConversation) {
             $this->out->text(' ');
             $convurl = common_local_url('conversation',
                                          array('id' => $this->notice->conversation));