@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/CHANGELOG.md +11 -0
- package/LICENSE +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +2 -2
- package/package.json +11 -11
- package/src/api/app/bsky/feed/getPostThread.ts +6 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @atproto/bsky
|
|
2
2
|
|
|
3
|
+
## 0.0.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`b1dc3555`](https://github.com/bluesky-social/atproto/commit/b1dc355504f9f2e047093dc56682b8034518cf80)]:
|
|
8
|
+
- @atproto/syntax@0.1.1
|
|
9
|
+
- @atproto/api@0.6.14
|
|
10
|
+
- @atproto/lexicon@0.2.1
|
|
11
|
+
- @atproto/repo@0.3.1
|
|
12
|
+
- @atproto/xrpc-server@0.3.1
|
|
13
|
+
|
|
3
14
|
## 0.0.4
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
package/LICENSE
CHANGED
package/dist/index.js
CHANGED
|
@@ -136200,7 +136200,7 @@ var composeThread = (threadData, actors, state, ctx) => {
|
|
|
136200
136200
|
const post = feedService.views.formatPostView(threadData.post.postUri, actors, posts, threadgates, embeds, labels, lists);
|
|
136201
136201
|
const isAnchorPost = state.threadData.post.uri === threadData.post.postUri;
|
|
136202
136202
|
const info = posts[threadData.post.postUri];
|
|
136203
|
-
const badReply = !!info?.
|
|
136203
|
+
const badReply = !!info?.violatesThreadGate;
|
|
136204
136204
|
const omitBadReply = !isAnchorPost && badReply;
|
|
136205
136205
|
if (!post || blocks[post.uri]?.reply || omitBadReply) {
|
|
136206
136206
|
return {
|
|
@@ -136323,7 +136323,7 @@ var getChildrenData = (childrenByParentUri, uri2, depth) => {
|
|
|
136323
136323
|
var checkViewerCanReply = async (db, anchor, viewer, owner, root, threadgate) => {
|
|
136324
136324
|
if (!viewer)
|
|
136325
136325
|
return false;
|
|
136326
|
-
if (anchor?.
|
|
136326
|
+
if (anchor?.violatesThreadGate)
|
|
136327
136327
|
return false;
|
|
136328
136328
|
const viewerViolatesThreadGate = await violatesThreadGate(db, viewer, owner, root, threadgate);
|
|
136329
136329
|
return !viewerViolatesThreadGate;
|