Update JSON tags for Approved and Rejected fields in MediaAttachment model

This commit is contained in:
2025-05-14 20:14:55 +03:30
parent b30f0d2726
commit ac86f8d2f0

View File

@@ -6,7 +6,7 @@ type MediaAttachment struct {
Url string `json:"url"`
PreviewUrl string `json:"preview_url"`
RemoteUrl string `json:"remote_url"`
Approved bool `json:"-"`
Rejected bool `json:"-"`
PostID string // Foreign key to Post
Approved bool `json:"approved"`
Rejected bool `json:"rejected"`
}