mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-29 16:33:17 +00:00
Merge pull request #818 from pixelfed/frontend-ui-refactor
Frontend ui refactor
This commit is contained in:
commit
7e12ddc1f9
2 changed files with 2 additions and 1 deletions
|
@ -220,6 +220,7 @@ class InternalApiController extends Controller
|
|||
$following = array_merge($following, $filters);
|
||||
|
||||
$posts = Status::select('id', 'caption', 'profile_id')
|
||||
->whereNull('uri')
|
||||
->whereHas('media')
|
||||
->whereHas('profile', function($q) {
|
||||
return $q->whereNull('status');
|
||||
|
|
|
@ -400,7 +400,7 @@ class PublicApiController extends Controller
|
|||
$only_media = $request->only_media ?? false;
|
||||
$user = Auth::user();
|
||||
$account = Profile::findOrFail($id);
|
||||
$statuses = $account->statuses()->getQuery();
|
||||
$statuses = $account->statuses()->getQuery()->whereNull('uri');
|
||||
if($only_media == true) {
|
||||
$statuses = $statuses
|
||||
->whereHas('media')
|
||||
|
|
Loading…
Reference in a new issue