diff --git a/posts/handler/posts.go b/posts/handler/posts.go index 69ccf10..4fd483f 100644 --- a/posts/handler/posts.go +++ b/posts/handler/posts.go @@ -93,10 +93,7 @@ func (p *Posts) Save(ctx context.Context, req *proto.SaveRequest, rsp *proto.Sav } // merge the metadata - for k, v := range oldPost.Metadata { - if _, ok := post.Metadata[k]; ok { - continue - } + for k, v := range req.Metadata { post.Metadata[k] = v }