mirror of https://github.com/pixelfed/pixelfed.git
Update PublicApiController
This commit is contained in:
parent
4f46f39f1e
commit
f3c16ceacb
|
@ -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 New Issue