From 63f8902674f2da18616689825cf94ec9f269f090 Mon Sep 17 00:00:00 2001 From: SoXX Date: Mon, 15 Jul 2024 15:24:08 +0200 Subject: [PATCH] feat: removed tags & added references for posts Signed-off-by: SoXX --- pkg/models/post.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/models/post.go b/pkg/models/post.go index 7d3f450..d272387 100644 --- a/pkg/models/post.go +++ b/pkg/models/post.go @@ -4,9 +4,9 @@ package models type Post struct { BaseModel[AnthrovePostID] Rating Rating `json:"rating" gorm:"type:enum('safe','questionable','explicit')"` - Tags []Tag `json:"tags" gorm:"many2many:post_tags;"` + Tags []Tag `json:"-" gorm:"many2many:post_tags;"` Favorites []UserFavorites `json:"-" gorm:"foreignKey:PostID"` - References []PostReference `json:"-" gorm:"foreignKey:PostID"` + References []PostReference `json:"references" gorm:"foreignKey:PostID"` } func (Post) TableName() string {