From 5f7bd108e9966cf0d590513524830e729ae16dd3 Mon Sep 17 00:00:00 2001 From: yiGmMk Date: Sat, 29 Oct 2022 18:06:55 +0800 Subject: [PATCH] fix bug,PostContent.Format copy data from wrong field --- internal/model/post_content.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/model/post_content.go b/internal/model/post_content.go index 3829ca8c..04b47522 100644 --- a/internal/model/post_content.go +++ b/internal/model/post_content.go @@ -72,7 +72,7 @@ func (p *PostContent) Format() *PostContentFormated { } return &PostContentFormated{ ID: p.ID, - PostID: p.ID, + PostID: p.PostID, Content: p.Content, Type: p.Type, Sort: p.Sort,