diff --git a/hubzilla/addon/dsc01/dsc01_spool.php b/hubzilla/addon/dsc01/dsc01_spool.php index ada14a3..189736d 100644 --- a/hubzilla/addon/dsc01/dsc01_spool.php +++ b/hubzilla/addon/dsc01/dsc01_spool.php @@ -58,6 +58,11 @@ function dsc01_handle_post($association_slug, $access) { $result = dsc01_post_to_orchestrator($envelope, $dsc_config); if ($result === true) { + // Store a local snapshot so scn01 can read DSC context for Scenario prerequisite check. + set_pconfig(local_channel(), 'dsc01_snapshot', $association_slug, json_encode([ + 'dsc_codes' => $codes, + 'narrative' => $narrative, + ])); $assoc_name = dsc01_h($assoc['name'] ?? $association_slug); return '