소스 검색

Update InternalApiController

Daniel Supernault 6 년 전
부모
커밋
8309c85d8b
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      app/Http/Controllers/InternalApiController.php

+ 1 - 0
app/Http/Controllers/InternalApiController.php

@@ -117,6 +117,7 @@ class InternalApiController extends Controller
               ->whereIsNsfw(false)
               ->whereVisibility('public')
               ->whereNotIn('profile_id', $following)
+              ->whereDate('created_at', '>', now()->subMonths(3))
               ->with('media')
               ->inRandomOrder()
               ->take(36)