kopia lustrzana https://github.com/pixelfed/pixelfed
				
				
				
			Update PublicApiController, use stateless transformer
							rodzic
							
								
									d0d4680709
								
							
						
					
					
						commit
						1325ce2cef
					
				| 
						 | 
				
			
			@ -635,7 +635,7 @@ class PublicApiController extends Controller
 | 
			
		|||
          ->orderByDesc('id')
 | 
			
		||||
          ->get();
 | 
			
		||||
 | 
			
		||||
        $resource = new Fractal\Resource\Collection($timeline, new StatusTransformer());
 | 
			
		||||
        $resource = new Fractal\Resource\Collection($timeline, new StatusStatelessTransformer());
 | 
			
		||||
        $res = $this->fractal->createData($resource)->toArray();
 | 
			
		||||
 | 
			
		||||
        return response()->json($res, 200, [], JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Ładowanie…
	
		Reference in New Issue