Implement creator studio and upload updates

This commit is contained in:
2026-04-04 10:12:02 +02:00
parent 1da7d3bf88
commit 0b216b7ecd
15107 changed files with 31206 additions and 626514 deletions

View File

@@ -0,0 +1,25 @@
<?php
namespace App\Services\Moderation;
use App\Models\ContentModerationFeedback;
use App\Models\ContentModerationFinding;
use App\Models\User;
class ModerationFeedbackService
{
/**
* @param array<string, mixed> $meta
*/
public function record(ContentModerationFinding $finding, string $feedbackType, ?User $actor = null, ?string $notes = null, array $meta = []): ContentModerationFeedback
{
return ContentModerationFeedback::query()->create([
'finding_id' => $finding->id,
'feedback_type' => $feedbackType,
'actor_id' => $actor?->id,
'notes' => $notes,
'meta_json' => $meta,
'created_at' => now(),
]);
}
}