forked from GNUsocial/gnu-social
		
	handle missing profile for notices better in NoticeList
This commit is contained in:
		@@ -96,8 +96,14 @@ class NoticeList extends Widget
 | 
				
			|||||||
                break;
 | 
					                break;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            try {
 | 
				
			||||||
                $item = $this->newListItem($this->notice);
 | 
					                $item = $this->newListItem($this->notice);
 | 
				
			||||||
                $item->show();
 | 
					                $item->show();
 | 
				
			||||||
 | 
					            } catch (Exception $e) {
 | 
				
			||||||
 | 
					                // we log exceptions and continue
 | 
				
			||||||
 | 
					                common_log(LOG_ERR, $e->getMessage());
 | 
				
			||||||
 | 
					                continue;
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        $this->out->elementEnd('ol');
 | 
					        $this->out->elementEnd('ol');
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user