mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 16:23:16 +00:00
Update PublicApiController
This commit is contained in:
parent
4f46f39f1e
commit
f3c16ceacb
1 changed files with 1 additions and 1 deletions
|
@ -400,7 +400,7 @@ class PublicApiController extends Controller
|
||||||
$only_media = $request->only_media ?? false;
|
$only_media = $request->only_media ?? false;
|
||||||
$user = Auth::user();
|
$user = Auth::user();
|
||||||
$account = Profile::findOrFail($id);
|
$account = Profile::findOrFail($id);
|
||||||
$statuses = $account->statuses()->getQuery();
|
$statuses = $account->statuses()->getQuery()->whereNull('uri');
|
||||||
if($only_media == true) {
|
if($only_media == true) {
|
||||||
$statuses = $statuses
|
$statuses = $statuses
|
||||||
->whereHas('media')
|
->whereHas('media')
|
||||||
|
|
Loading…
Reference in a new issue