@atproto/bsky 0.0.4 → 0.0.5

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/bsky",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -31,14 +31,14 @@
31
31
  "sharp": "^0.31.2",
32
32
  "typed-emitter": "^2.1.0",
33
33
  "uint8arrays": "3.0.0",
34
- "@atproto/api": "^0.6.13",
34
+ "@atproto/api": "^0.6.14",
35
35
  "@atproto/common": "^0.3.0",
36
36
  "@atproto/crypto": "^0.2.2",
37
- "@atproto/syntax": "^0.1.0",
37
+ "@atproto/syntax": "^0.1.1",
38
38
  "@atproto/identity": "^0.2.0",
39
- "@atproto/lexicon": "^0.2.0",
40
- "@atproto/repo": "^0.3.0",
41
- "@atproto/xrpc-server": "^0.3.0"
39
+ "@atproto/lexicon": "^0.2.1",
40
+ "@atproto/repo": "^0.3.1",
41
+ "@atproto/xrpc-server": "^0.3.1"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@did-plc/server": "^0.0.1",
@@ -49,11 +49,11 @@
49
49
  "@types/qs": "^6.9.7",
50
50
  "@types/sharp": "^0.31.0",
51
51
  "axios": "^0.27.2",
52
- "@atproto/api": "^0.6.13",
53
- "@atproto/dev-env": "^0.2.4",
54
- "@atproto/lex-cli": "^0.2.0",
55
- "@atproto/pds": "^0.1.13",
56
- "@atproto/xrpc": "^0.3.0"
52
+ "@atproto/api": "^0.6.14",
53
+ "@atproto/dev-env": "^0.2.5",
54
+ "@atproto/lex-cli": "^0.2.1",
55
+ "@atproto/pds": "^0.1.14",
56
+ "@atproto/xrpc": "^0.3.1"
57
57
  },
58
58
  "scripts": {
59
59
  "codegen": "lex gen-server ./src/lexicon ../../lexicons/com/atproto/*/* ../../lexicons/app/bsky/*/*",
@@ -140,7 +140,9 @@ const composeThread = (
140
140
  // b. may not appear anywhere else in the thread.
141
141
  const isAnchorPost = state.threadData.post.uri === threadData.post.postUri
142
142
  const info = posts[threadData.post.postUri]
143
- const badReply = !!info?.invalidReplyRoot || !!info?.violatesThreadGate
143
+ // @TODO re-enable invalidReplyRoot check
144
+ // const badReply = !!info?.invalidReplyRoot || !!info?.violatesThreadGate
145
+ const badReply = !!info?.violatesThreadGate
144
146
  const omitBadReply = !isAnchorPost && badReply
145
147
 
146
148
  if (!post || blocks[post.uri]?.reply || omitBadReply) {
@@ -312,7 +314,9 @@ const checkViewerCanReply = async (
312
314
  threadgate: ThreadgateRecord | null,
313
315
  ) => {
314
316
  if (!viewer) return false
315
- if (anchor?.invalidReplyRoot || anchor?.violatesThreadGate) return false
317
+ // @TODO re-enable invalidReplyRoot check
318
+ // if (anchor?.invalidReplyRoot || anchor?.violatesThreadGate) return false
319
+ if (anchor?.violatesThreadGate) return false
316
320
  const viewerViolatesThreadGate = await violatesThreadGate(
317
321
  db,
318
322
  viewer,