@atproto/ozone 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atproto/ozone",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "license": "MIT",
5
5
  "description": "Backend service for moderating the Bluesky network.",
6
6
  "keywords": [
@@ -30,7 +30,7 @@
30
30
  "pino-http": "^8.2.1",
31
31
  "typed-emitter": "^2.1.0",
32
32
  "uint8arrays": "3.0.0",
33
- "@atproto/api": "^0.11.1",
33
+ "@atproto/api": "^0.11.2",
34
34
  "@atproto/common": "^0.3.4",
35
35
  "@atproto/crypto": "^0.3.0",
36
36
  "@atproto/identity": "^0.3.3",
@@ -47,10 +47,10 @@
47
47
  "@types/qs": "^6.9.7",
48
48
  "axios": "^0.27.2",
49
49
  "nodemailer": "^6.8.0",
50
- "@atproto/api": "^0.11.1",
51
- "@atproto/dev-env": "^0.2.39",
50
+ "@atproto/api": "^0.11.2",
51
+ "@atproto/dev-env": "^0.2.41",
52
52
  "@atproto/lex-cli": "^0.3.2",
53
- "@atproto/pds": "^0.4.7",
53
+ "@atproto/pds": "^0.4.8",
54
54
  "@atproto/xrpc": "^0.4.3"
55
55
  },
56
56
  "scripts": {
@@ -23,7 +23,10 @@ export default function (server: Server, ctx: AppContext) {
23
23
  }
24
24
  }
25
25
 
26
- const res = await ctx.appviewAgent.api.app.bsky.actor.searchActors(params)
26
+ const res = await ctx.appviewAgent.api.app.bsky.actor.searchActors(
27
+ params,
28
+ await ctx.appviewAuth(),
29
+ )
27
30
  const repoMap = await modService.views.repos(
28
31
  res.data.actors.map((a) => a.did),
29
32
  )
@@ -87,7 +87,9 @@ export class BlobDiverter {
87
87
  subjectUri,
88
88
  }: { subjectDid: string; subjectUri: string | null },
89
89
  ) {
90
- const url = new URL(this.serviceConfig.url)
90
+ const url = new URL(
91
+ `${this.serviceConfig.url}/xrpc/com.atproto.unspecced.reportBlob`,
92
+ )
91
93
  url.searchParams.set('did', subjectDid)
92
94
  if (subjectUri) url.searchParams.set('uri', subjectUri)
93
95
  const result = await this.sendImage({
@@ -827,7 +827,6 @@ export class ModerationService {
827
827
  uri,
828
828
  cid: cid ?? undefined,
829
829
  val,
830
- neg: false,
831
830
  cts: new Date().toISOString(),
832
831
  }))
833
832
  const toNegate = negate.map((val) => ({
@@ -47,7 +47,7 @@ export const signLabel = async (
47
47
  uri,
48
48
  cid,
49
49
  val,
50
- neg,
50
+ neg: neg === true ? true : undefined,
51
51
  cts,
52
52
  exp,
53
53
  }) as Label
@@ -38,6 +38,7 @@ describe('admin repo search view', () => {
38
38
  did: sc.dids['cara-wiegand69.test'],
39
39
  },
40
40
  })
41
+ await network.ozone.processAll()
41
42
  })
42
43
 
43
44
  it('gives relevant results', async () => {