kopia lustrzana https://github.com/pixelfed/pixelfed
				
				
				
			Update LikeService, fix authentication bug
							rodzic
							
								
									3b4add7b8e
								
							
						
					
					
						commit
						c9abd70e8a
					
				|  | @ -76,7 +76,7 @@ class LikeService { | |||
| 			'others' => $status->likes_count >= 5, | ||||
| 		]; | ||||
| 
 | ||||
| 		if(request()->user()->profile_id == $status->profile_id) { | ||||
| 		if(request()->user() && request()->user()->profile_id == $status->profile_id) { | ||||
| 			$res['total_count'] = $status->likes_count; | ||||
| 			$res['total_count_pretty'] = number_format($res['total_count']); | ||||
| 		} | ||||
|  |  | |||
		Ładowanie…
	
		Reference in New Issue
	
	 Daniel Supernault
						Daniel Supernault