Add tests for featured thumbnail generation; apply Pint formatting and related edits
This commit is contained in:
@@ -30,7 +30,19 @@ class LatestCommentsApiController extends Controller
|
||||
return response()->json(['error' => 'Unauthenticated'], 401);
|
||||
}
|
||||
|
||||
$query = ArtworkComment::with(['user', 'user.profile', 'artwork'])
|
||||
$query = ArtworkComment::query()
|
||||
->select([
|
||||
'artwork_comments.id',
|
||||
'artwork_comments.artwork_id',
|
||||
'artwork_comments.user_id',
|
||||
'artwork_comments.content',
|
||||
'artwork_comments.created_at',
|
||||
])
|
||||
->with([
|
||||
'user:id,username,name',
|
||||
'user.profile:user_id,avatar_hash',
|
||||
'artwork:id,title,slug,hash,file_path,file_name',
|
||||
])
|
||||
->whereHas('artwork', function ($q) {
|
||||
$q->public()->published()->whereNull('deleted_at');
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user