diff --git a/app/Http/Controllers/ProfileController.php b/app/Http/Controllers/ProfileController.php index 233316540..3d5137f49 100644 --- a/app/Http/Controllers/ProfileController.php +++ b/app/Http/Controllers/ProfileController.php @@ -136,7 +136,7 @@ class ProfileController extends Controller return redirect($profile->url()); } } - $items = $profile->statuses()->whereIn('visibility',['public', 'unlisted'])->orderBy('created_at', 'desc')->take(10)->get(); + $items = $profile->statuses()->whereHas('media')->whereIn('visibility',['public', 'unlisted'])->orderBy('created_at', 'desc')->take(10)->get(); return response()->view('atom.user', compact('profile', 'items')) ->header('Content-Type', 'application/atom+xml'); } diff --git a/config/pixelfed.php b/config/pixelfed.php index 0e2cdb8d2..5af80397a 100644 --- a/config/pixelfed.php +++ b/config/pixelfed.php @@ -23,7 +23,7 @@ return [ | This value is the version of your PixelFed instance. | */ - 'version' => '0.5.6', + 'version' => '0.5.7', /* |-------------------------------------------------------------------------- diff --git a/resources/views/atom/user.blade.php b/resources/views/atom/user.blade.php index c27ebcd8e..0d678b774 100644 --- a/resources/views/atom/user.blade.php +++ b/resources/views/atom/user.blade.php @@ -28,7 +28,7 @@ {{ $item->caption }} - {{ url($item->id) }} + {{ $item->url() }} profile->username }}]]>