trashed(); return [ 'id' => (string) $this->id, 'target_type' => $this->res_type, 'target_id' => $this->res_id, 'parent_id' => $this->parent, 'type' => $this->type, 'severity' => $this->severity, 'status' => $this->status, 'title' => $tombstone ? null : $this->title, 'content' => $tombstone ? null : $this->content, 'content_type' => $this->content_type, 'html' => $this->when($this->rendered !== null, fn () => $this->rendered['html']), 'summary' => $this->when($this->rendered !== null, fn () => $this->rendered['summary']), 'tpl_id' => $this->tpl_id, 'pos_start' => $this->pos_start, 'pos_end' => $this->pos_end, 'quote_exact' => $tombstone ? null : $this->quote_exact, 'quote_prefix' => $tombstone ? null : $this->quote_prefix, 'quote_suffix' => $tombstone ? null : $this->quote_suffix, 'reply_count' => $this->when($this->parent === null, fn () => (int) $this->reply_count), 'editor' => $this->actor($this->user, $this->aiModel), // AI 代写时的模型;人类自己写的、存量数据都为 null 'co_editor' => $this->coEditor ? $this->actor(null, $this->coEditor) : null, 'abilities' => $this->abilities ?? ['update' => false, 'delete' => false, 'close' => false, 'reply' => false], 'created_at' => $this->created_at, 'updated_at' => $this->updated_at, 'deleted_at' => $this->deleted_at, ]; } }