Merge branch 'hot-fix/1.0.0' into 'test'

fix(tag): Only if tag info is all same than without edit.

See merge request opensource/answer!378
This commit is contained in:
linkinstar
2022-12-23 02:49:44 +00:00
+3 -1
View File
@@ -661,7 +661,9 @@ func (ts *TagCommonService) UpdateTag(ctx context.Context, req *schema.UpdateTag
return errors.BadRequest(reason.TagNotFound)
}
//If the content is the same, ignore it
if tagInfo.OriginalText == req.OriginalText {
if tagInfo.OriginalText == req.OriginalText &&
tagInfo.DisplayName == req.DisplayName &&
tagInfo.SlugName == req.SlugName {
return nil
}