mirror of
https://github.com/imgfloat/server.git
synced 2026-02-05 03:39:26 +00:00
Add additional marketplace options on launch
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user