fix: stabilize rpg creation entry and opening cg
This commit is contained in:
@@ -2562,6 +2562,18 @@ fn upsert_nested_result_profile_id(
|
||||
}
|
||||
}
|
||||
|
||||
fn resolve_publish_world_setting_text(
|
||||
payload: &JsonMap<String, JsonValue>,
|
||||
draft_profile: &JsonMap<String, JsonValue>,
|
||||
session: &CustomWorldAgentSession,
|
||||
) -> String {
|
||||
module_custom_world::resolve_custom_world_publish_setting_text(
|
||||
payload,
|
||||
draft_profile,
|
||||
&session.seed_text,
|
||||
)
|
||||
}
|
||||
|
||||
fn is_same_agent_draft_profile_candidate(
|
||||
row: &CustomWorldProfile,
|
||||
owner_user_id: &str,
|
||||
@@ -2608,13 +2620,7 @@ fn execute_publish_world_action(
|
||||
.filter(|value| !value.is_empty())
|
||||
.map(ToOwned::to_owned)
|
||||
.unwrap_or_else(|| gate.profile_id.clone());
|
||||
let setting_text = payload
|
||||
.get("settingText")
|
||||
.and_then(JsonValue::as_str)
|
||||
.map(str::trim)
|
||||
.filter(|value| !value.is_empty())
|
||||
.map(ToOwned::to_owned)
|
||||
.unwrap_or_else(|| session.seed_text.clone());
|
||||
let setting_text = resolve_publish_world_setting_text(payload, &draft_profile, session);
|
||||
let legacy_result_profile_json = payload
|
||||
.get("legacyResultProfile")
|
||||
.map(serialize_json_value)
|
||||
|
||||
Reference in New Issue
Block a user