Add live show moderation queue

This commit is contained in:
Codex Agent
2026-01-05 14:04:05 +01:00
parent 7802bed394
commit e3b7271f69
16 changed files with 829 additions and 8 deletions

View File

@@ -32,6 +32,11 @@ class PhotoResource extends JsonResource
'is_featured' => (bool) ($this->is_featured ?? false),
'status' => $showSensitive ? $this->status : 'approved',
'moderation_notes' => $showSensitive ? $this->moderation_notes : null,
'live_status' => $showSensitive ? $this->live_status?->value ?? $this->live_status : null,
'live_approved_at' => $showSensitive ? $this->live_approved_at?->toISOString() : null,
'live_reviewed_at' => $showSensitive ? $this->live_reviewed_at?->toISOString() : null,
'live_rejection_reason' => $showSensitive ? $this->live_rejection_reason : null,
'live_priority' => $showSensitive ? (int) ($this->live_priority ?? 0) : null,
'likes_count' => (int) ($this->likes_count ?? $this->likes()->count()),
'is_liked' => false,
'uploaded_at' => $this->created_at->toISOString(),