Changeset View
Changeset View
Standalone View
Standalone View
keyserver/src/scripts/move-threads.js
- This file was added.
// @flow | |||||
import ashoat from 'lib/facts/ashoat'; | |||||
import { threadTypes } from 'lib/types/thread-types'; | |||||
import { createScriptViewer } from '../session/scripts'; | |||||
import { updateThread } from '../updaters/thread-updaters'; | |||||
import { main } from './utils'; | |||||
async function moveThreads() { | |||||
const viewer = createScriptViewer(ashoat.id); | |||||
await updateThread( | |||||
viewer, | |||||
{ | |||||
threadID: '1251682', // comm global hq | |||||
changes: { | |||||
type: threadTypes.COMMUNITY_SECRET_SUBTHREAD, | |||||
parentThreadID: '311733', // Comm | |||||
}, | |||||
}, | |||||
{ ignorePermissions: true }, | |||||
); | |||||
await updateThread( | |||||
viewer, | |||||
{ | |||||
threadID: '1512796', // Bird App | |||||
changes: { | |||||
type: threadTypes.COMMUNITY_OPEN_SUBTHREAD, | |||||
parentThreadID: '311733', // Comm | |||||
}, | |||||
}, | |||||
{ ignorePermissions: true }, | |||||
); | |||||
} | |||||
main([moveThreads]); |