-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Stop creating a mod-authority in e2e due to upstream conflict * Dont require 3 interests when none come back * Fix e2e login * intl extract
- Loading branch information
Showing
20 changed files
with
21,355 additions
and
13,901 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,32 +79,33 @@ export async function createServer( | |
plc: {port: port2}, | ||
}) | ||
|
||
// DISABLED - looks like dev-env added this and now it conflicts | ||
// add the test mod authority | ||
const agent = new BskyAgent({service: pdsUrl}) | ||
const res = await agent.api.com.atproto.server.createAccount({ | ||
email: '[email protected]', | ||
handle: 'mod-authority.test', | ||
password: 'hunter2', | ||
}) | ||
agent.api.setHeader('Authorization', `Bearer ${res.data.accessJwt}`) | ||
await agent.api.app.bsky.actor.profile.create( | ||
{repo: res.data.did}, | ||
{ | ||
displayName: 'Dev-env Moderation', | ||
description: `The pretend version of mod.bsky.app`, | ||
}, | ||
) | ||
|
||
await agent.api.app.bsky.labeler.service.create( | ||
{repo: res.data.did, rkey: 'self'}, | ||
{ | ||
policies: { | ||
labelValues: ['!hide', '!warn'], | ||
labelValueDefinitions: [], | ||
}, | ||
createdAt: new Date().toISOString(), | ||
}, | ||
) | ||
// const agent = new BskyAgent({service: pdsUrl}) | ||
// const res = await agent.api.com.atproto.server.createAccount({ | ||
// email: '[email protected]', | ||
// handle: 'mod-authority.test', | ||
// password: 'hunter2', | ||
// }) | ||
// agent.api.setHeader('Authorization', `Bearer ${res.data.accessJwt}`) | ||
// await agent.api.app.bsky.actor.profile.create( | ||
// {repo: res.data.did}, | ||
// { | ||
// displayName: 'Dev-env Moderation', | ||
// description: `The pretend version of mod.bsky.app`, | ||
// }, | ||
// ) | ||
|
||
// await agent.api.app.bsky.labeler.service.create( | ||
// {repo: res.data.did, rkey: 'self'}, | ||
// { | ||
// policies: { | ||
// labelValues: ['!hide', '!warn'], | ||
// labelValueDefinitions: [], | ||
// }, | ||
// createdAt: new Date().toISOString(), | ||
// }, | ||
// ) | ||
|
||
const pic = fs.readFileSync( | ||
path.join(__dirname, '..', 'assets', 'default-avatar.png'), | ||
|
Oops, something went wrong.