Add additional marketplace options on launch

This commit is contained in:
2026-01-13 13:12:44 +01:00
parent 94d0787b75
commit ea986059ba
21 changed files with 252 additions and 5 deletions

View File

@@ -643,6 +643,7 @@ public class ChannelDirectoryService {
}
script.setAttachments(loadScriptAttachments(asset.getBroadcaster(), asset.getId(), null));
scriptAssetRepository.save(script);
AssetView view = AssetView.fromScript(asset.getBroadcaster(), asset, script);
messagingTemplate.convertAndSend(topicFor(targetBroadcaster), AssetEvent.created(targetBroadcaster, view));
return Optional.of(view);

View File

@@ -196,9 +196,9 @@ public class MarketplaceScriptSeedLoader {
if (rootPath != null && !rootPath.isBlank()) {
return Path.of(rootPath);
}
Path devPath = Path.of("dev", "marketplace-scripts");
if (Files.isDirectory(devPath)) {
return devPath;
Path docsPath = Path.of("doc", "marketplace-scripts");
if (Files.isDirectory(docsPath)) {
return docsPath;
}
return null;
}