A community based topic aggregation platform built on atproto

feat(comments): add deletion reason constants and model fields

Add DeletionReasonAuthor and DeletionReasonModerator constants.
Add DeletionReason and DeletedBy fields to Comment struct for
tracking who deleted a comment and why.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

Changed files
+8
internal
core
comments
+8
internal/core/comments/comment.go
···
"time"
)
+
// Deletion reason constants
+
const (
+
DeletionReasonAuthor = "author" // User deleted their own comment
+
DeletionReasonModerator = "moderator" // Community moderator removed the comment
+
)
+
// Comment represents a comment in the AppView database
// Comments are indexed from the firehose after being written to user repositories
type Comment struct {
···
CreatedAt time.Time `json:"createdAt" db:"created_at"`
ContentFacets *string `json:"contentFacets,omitempty" db:"content_facets"`
DeletedAt *time.Time `json:"deletedAt,omitempty" db:"deleted_at"`
+
DeletionReason *string `json:"deletionReason,omitempty" db:"deletion_reason"`
+
DeletedBy *string `json:"deletedBy,omitempty" db:"deleted_by"`
ContentLabels *string `json:"labels,omitempty" db:"content_labels"`
Embed *string `json:"embed,omitempty" db:"embed"`
CommenterHandle string `json:"commenterHandle,omitempty" db:"-"`