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

This commit is contained in:
LinkinStar 2022-12-23 10:46:09 +08:00
parent 06aa09bf35
commit 15777fccbc
1 changed files with 3 additions and 1 deletions

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
}