forked from GNUsocial/gnu-social
		
	quick fix for when there is no $cur defined
This commit is contained in:
		@@ -64,7 +64,10 @@ class AtomUserNoticeFeed extends AtomNoticeFeed
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
            $ao = $profile->asActivityObject();
 | 
					            $ao = $profile->asActivityObject();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            array_push($ao->extra, $profile->profileInfo($cur->getProfile()));
 | 
					            // quick fix until we start using Profile everywhere instead of User
 | 
				
			||||||
 | 
					            $scoped = !is_null($cur) ? $cur->getProfile() : null;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            array_push($ao->extra, $profile->profileInfo($scoped));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            $this->addAuthorRaw($ao->asString('author'));
 | 
					            $this->addAuthorRaw($ao->asString('author'));
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user