Page MenuHomePhabricator

D6234.diff
No OneTemporary

D6234.diff

diff --git a/keyserver/src/scripts/create-community.js b/keyserver/src/scripts/create-community.js
new file mode 100644
--- /dev/null
+++ b/keyserver/src/scripts/create-community.js
@@ -0,0 +1,20 @@
+// @flow
+
+import ashoat from 'lib/facts/ashoat';
+import { threadTypes } from 'lib/types/thread-types';
+
+import { createThread } from '../creators/thread-creator';
+import { createScriptViewer } from '../session/scripts';
+import { main } from './utils';
+
+const communityName = 'New community';
+
+async function createCommunity() {
+ const ashoatViewer = createScriptViewer(ashoat.id);
+ await createThread(ashoatViewer, {
+ type: threadTypes.COMMUNITY_ROOT,
+ name: communityName,
+ });
+}
+
+main([createCommunity]);

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 17, 1:39 AM (20 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2510168
Default Alt Text
D6234.diff (736 B)

Event Timeline