@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/CHANGELOG.md +16 -0
- package/dist/index.js +3 -4
- package/dist/index.js.map +2 -2
- package/package.json +5 -5
- package/src/api/moderation/searchRepos.ts +4 -1
- package/src/daemon/blob-diverter.ts +3 -1
- package/src/mod-service/index.ts +0 -1
- package/src/mod-service/util.ts +1 -1
- package/tests/repo-search.test.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atproto/ozone",
|
|
3
|
-
"version": "0.1.
|
|
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.
|
|
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.
|
|
51
|
-
"@atproto/dev-env": "^0.2.
|
|
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.
|
|
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(
|
|
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(
|
|
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({
|
package/src/mod-service/index.ts
CHANGED
package/src/mod-service/util.ts
CHANGED