Track file uploads on Wings, not the panel

This commit is contained in:
DaneEveritt 2022-07-24 17:13:07 -04:00
parent 6a11c32bb2
commit f8c48214a5
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
5 changed files with 11 additions and 3 deletions

View file

@ -2,6 +2,7 @@
namespace Pterodactyl\Http\Controllers\Api\Client;
use Pterodactyl\Models\ActivityLog;
use Spatie\QueryBuilder\QueryBuilder;
use Spatie\QueryBuilder\AllowedFilter;
use Pterodactyl\Http\Requests\Api\Client\ClientApiRequest;
@ -18,6 +19,7 @@ class ActivityLogController extends ClientApiController
->with('actor')
->allowedFilters([AllowedFilter::partial('event')])
->allowedSorts(['timestamp'])
->whereNotIn('activity_logs.event', ActivityLog::DISABLED_EVENTS)
->paginate(min($request->query('per_page', 25), 100))
->appends($request->query());