From 15777fccbcbaa85091558ad8b235e95f81ed4f48 Mon Sep 17 00:00:00 2001 From: LinkinStar Date: Fri, 23 Dec 2022 10:46:09 +0800 Subject: [PATCH] fix(tag): Only if tag info is all same than without edit. --- internal/service/tag_common/tag_common.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/service/tag_common/tag_common.go b/internal/service/tag_common/tag_common.go index 6af946bb..d4531329 100644 --- a/internal/service/tag_common/tag_common.go +++ b/internal/service/tag_common/tag_common.go @@ -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 }