kopia lustrzana https://github.com/pixelfed/pixelfed
				
				
				
			Update AP helpers, fix last_fetched_at condition
							rodzic
							
								
									9ef9985133
								
							
						
					
					
						commit
						c32bb55b8a
					
				| 
						 | 
				
			
			@ -695,7 +695,7 @@ class Helpers {
 | 
			
		|||
		}
 | 
			
		||||
 | 
			
		||||
		if($profile = Profile::whereRemoteUrl($url)->first()) {
 | 
			
		||||
			if($profile->last_fetched_at->lt(now()->subHours(24))) {
 | 
			
		||||
			if($profile->last_fetched_at && $profile->last_fetched_at->lt(now()->subHours(24))) {
 | 
			
		||||
				return self::profileUpdateOrCreate($url);
 | 
			
		||||
			}
 | 
			
		||||
			return $profile;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Ładowanie…
	
		Reference in New Issue