Merge pull request #882 from pixelfed/frontend-ui-refactor

Update PublicApiController
This commit is contained in:
daniel 2019-02-24 23:54:22 -07:00 committed by GitHub
commit 24e3f48f1a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -260,7 +260,6 @@ class PublicApiController extends Controller
->whereNull('in_reply_to_id')
->whereNull('reblog_of_id')
->whereVisibility('public')
->withCount(['comments', 'likes'])
->orderBy('created_at', 'desc')
->limit($limit)
->get();
@ -286,7 +285,6 @@ class PublicApiController extends Controller
->whereNull('in_reply_to_id')
->whereNull('reblog_of_id')
->whereVisibility('public')
->withCount(['comments', 'likes'])
->orderBy('created_at', 'desc')
->simplePaginate($limit);
}
@ -362,7 +360,6 @@ class PublicApiController extends Controller
->whereNull('in_reply_to_id')
->whereNull('reblog_of_id')
->whereIn('visibility',['public', 'unlisted', 'private'])
->withCount(['comments', 'likes'])
->orderBy('created_at', 'desc')
->limit($limit)
->get();
@ -389,7 +386,6 @@ class PublicApiController extends Controller
->whereNull('in_reply_to_id')
->whereNull('reblog_of_id')
->whereIn('visibility',['public', 'unlisted', 'private'])
->withCount(['comments', 'likes'])
->orderBy('created_at', 'desc')
->simplePaginate($limit);
}