forked from GNUsocial/gnu-social
		
	make sure to show repeats correctly when original is deleted
This commit is contained in:
		@@ -167,8 +167,13 @@ class NoticeListItem extends Widget
 | 
				
			|||||||
    {
 | 
					    {
 | 
				
			||||||
        parent::__construct($out);
 | 
					        parent::__construct($out);
 | 
				
			||||||
        if (!empty($notice->repeat_of)) {
 | 
					        if (!empty($notice->repeat_of)) {
 | 
				
			||||||
            $this->notice = Notice::staticGet('id', $notice->repeat_of);
 | 
					            $original = Notice::staticGet('id', $notice->repeat_of);
 | 
				
			||||||
            $this->repeat = $notice;
 | 
					            if (empty($original)) { // could have been deleted
 | 
				
			||||||
 | 
					                $this->notice = $notice;
 | 
				
			||||||
 | 
					            } else {
 | 
				
			||||||
 | 
					                $this->notice = $original;
 | 
				
			||||||
 | 
					                $this->repeat = $notice;
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
            $this->notice  = $notice;
 | 
					            $this->notice  = $notice;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user