Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3266023
D6234.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
736 B
Referenced Files
None
Subscribers
None
D6234.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D6234: [keyserver] Script to create new community
Attached
Detach File
Event Timeline
Log In to Comment