From ac86f8d2f0e1c35f7915b821de9739fd170321b8 Mon Sep 17 00:00:00 2001 From: Mohammad Mahdi Date: Wed, 14 May 2025 20:14:55 +0330 Subject: [PATCH] Update JSON tags for Approved and Rejected fields in MediaAttachment model --- internal/models/mediaAttachment.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/models/mediaAttachment.go b/internal/models/mediaAttachment.go index 01cd9ae..b1e57d6 100644 --- a/internal/models/mediaAttachment.go +++ b/internal/models/mediaAttachment.go @@ -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"` }