mirror of
https://github.com/iflytek/skillhub.git
synced 2026-11-14 09:01:16 +00:00
fix: keep private-skill summary update behaviour unchanged
Signed-off-by: 千乘妍 (Xiaoyaner) <xiaoyaner0201@users.noreply.github.com>
This commit is contained in:
parent
7e50acace7
commit
eedea88db3
1 changed files with 1 additions and 1 deletions
|
|
@ -956,7 +956,7 @@ public class SkillPublishService {
|
|||
|
||||
// 12. Update skill metadata and move the published pointer for auto-publish flows
|
||||
// A pending update must not replace the currently published title or summary.
|
||||
if (autoPublish || newSkill || (visibility != SkillVisibility.PRIVATE && skill.getLatestVersionId() == null)) {
|
||||
if (autoPublish || visibility == SkillVisibility.PRIVATE || skill.getLatestVersionId() == null) {
|
||||
skill.setDisplayName(metadata.displayName());
|
||||
skill.setSummary(metadata.shortDescription());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue