@atproto/bsky 0.0.17 → 0.0.19
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 +18 -0
- package/dist/index.js +14 -10
- package/dist/index.js.map +2 -2
- package/dist/lexicon/types/app/bsky/feed/getAuthorFeed.d.ts +1 -1
- package/dist/services/actor/views.d.ts +1 -4
- package/package.json +5 -5
- package/src/api/app/bsky/actor/searchActorsTypeahead.ts +1 -1
- package/src/api/app/bsky/feed/getAuthorFeed.ts +7 -0
- package/src/lexicon/lexicons.ts +1 -0
- package/src/lexicon/types/app/bsky/feed/getAuthorFeed.ts +1 -0
- package/src/services/actor/views.ts +3 -6
- package/tests/seeds/author-feed.ts +95 -0
- package/tests/views/__snapshots__/author-feed.test.ts.snap +10 -10
- package/tests/views/author-feed.test.ts +20 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atproto/bsky
|
|
2
2
|
|
|
3
|
+
## 0.0.19
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1776](https://github.com/bluesky-social/atproto/pull/1776) [`ffe39aae`](https://github.com/bluesky-social/atproto/commit/ffe39aae8394394f73bbfaa9047a8b5818aa053a) Thanks [@estrattonbailey](https://github.com/estrattonbailey)! - Integrate `posts_and_author_threads` filter into `getAuthorFeed` implementation.
|
|
8
|
+
|
|
9
|
+
- [#1776](https://github.com/bluesky-social/atproto/pull/1776) [`ffe39aae`](https://github.com/bluesky-social/atproto/commit/ffe39aae8394394f73bbfaa9047a8b5818aa053a) Thanks [@estrattonbailey](https://github.com/estrattonbailey)! - Add `posts_and_author_threads` filter to `getAuthorFeed`
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [[`ffe39aae`](https://github.com/bluesky-social/atproto/commit/ffe39aae8394394f73bbfaa9047a8b5818aa053a)]:
|
|
12
|
+
- @atproto/api@0.7.2
|
|
13
|
+
|
|
14
|
+
## 0.0.18
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies [[`60deea17`](https://github.com/bluesky-social/atproto/commit/60deea17622f7c574c18432a55ced4e1cdc1b3a1)]:
|
|
19
|
+
- @atproto/api@0.7.1
|
|
20
|
+
|
|
3
21
|
## 0.0.17
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -119021,6 +119021,8 @@ var skeleton2 = async (params2, ctx) => {
|
|
|
119021
119021
|
feedItemsQb = feedItemsQb.where("type", "=", "post").whereExists((qb) => qb.selectFrom("post_embed_image").select("post_embed_image.postUri").whereRef("post_embed_image.postUri", "=", "feed_item.postUri"));
|
|
119022
119022
|
} else if (filter === "posts_no_replies") {
|
|
119023
119023
|
feedItemsQb = feedItemsQb.where((qb) => qb.where("post.replyParent", "is", null).orWhere("type", "=", "repost"));
|
|
119024
|
+
} else if (filter === "posts_and_author_threads") {
|
|
119025
|
+
feedItemsQb = feedItemsQb.where((qb) => qb.where("type", "=", "repost").orWhere("post.replyParent", "is", null).orWhere("post.replyRoot", "like", `at://${actorDid}/%`));
|
|
119024
119026
|
}
|
|
119025
119027
|
const keyset = new FeedKeyset(ref("feed_item.sortAt"), ref("feed_item.cid"));
|
|
119026
119028
|
feedItemsQb = paginate(feedItemsQb, {
|
|
@@ -124569,7 +124571,8 @@ var schemaDict = {
|
|
|
124569
124571
|
knownValues: [
|
|
124570
124572
|
"posts_with_replies",
|
|
124571
124573
|
"posts_no_replies",
|
|
124572
|
-
"posts_with_media"
|
|
124574
|
+
"posts_with_media",
|
|
124575
|
+
"posts_and_author_threads"
|
|
124573
124576
|
],
|
|
124574
124577
|
default: "posts_with_replies"
|
|
124575
124578
|
}
|
|
@@ -129238,20 +129241,20 @@ var LABELS = {
|
|
|
129238
129241
|
strings: {
|
|
129239
129242
|
settings: {
|
|
129240
129243
|
en: {
|
|
129241
|
-
name: "
|
|
129242
|
-
description: "This user has requested that their
|
|
129244
|
+
name: "Sign-in Required",
|
|
129245
|
+
description: "This user has requested that their account only be shown to signed-in users."
|
|
129243
129246
|
}
|
|
129244
129247
|
},
|
|
129245
129248
|
account: {
|
|
129246
129249
|
en: {
|
|
129247
129250
|
name: "Sign-in Required",
|
|
129248
|
-
description: "This user has requested that their
|
|
129251
|
+
description: "This user has requested that their account only be shown to signed-in users."
|
|
129249
129252
|
}
|
|
129250
129253
|
},
|
|
129251
129254
|
content: {
|
|
129252
129255
|
en: {
|
|
129253
129256
|
name: "Sign-in Required",
|
|
129254
|
-
description: "This user has requested that their content only be shown to
|
|
129257
|
+
description: "This user has requested that their content only be shown to signed-in users."
|
|
129255
129258
|
}
|
|
129256
129259
|
}
|
|
129257
129260
|
}
|
|
@@ -135997,7 +136000,8 @@ var schemaDict2 = {
|
|
|
135997
136000
|
knownValues: [
|
|
135998
136001
|
"posts_with_replies",
|
|
135999
136002
|
"posts_no_replies",
|
|
136000
|
-
"posts_with_media"
|
|
136003
|
+
"posts_with_media",
|
|
136004
|
+
"posts_and_author_threads"
|
|
136001
136005
|
],
|
|
136002
136006
|
default: "posts_with_replies"
|
|
136003
136007
|
}
|
|
@@ -139643,7 +139647,7 @@ function searchActorsTypeahead_default(server, ctx) {
|
|
|
139643
139647
|
const res = query ? await getUserSearchQuerySimple(db, { query, limit }).selectAll("actor").execute() : [];
|
|
139644
139648
|
results = res.map((a) => a.did);
|
|
139645
139649
|
}
|
|
139646
|
-
const actors = await ctx.services.actor(db).views.profilesBasic(results, requester
|
|
139650
|
+
const actors = await ctx.services.actor(db).views.profilesBasic(results, requester);
|
|
139647
139651
|
const SKIP = [];
|
|
139648
139652
|
const filtered = results.flatMap((did2) => {
|
|
139649
139653
|
const actor = actors[did2];
|
|
@@ -143869,7 +143873,7 @@ var ActorViews = class {
|
|
|
143869
143873
|
viewer,
|
|
143870
143874
|
includeSoftDeleted: opts?.includeSoftDeleted
|
|
143871
143875
|
});
|
|
143872
|
-
return this.profileBasicPresentation(dids, hydrated, viewer
|
|
143876
|
+
return this.profileBasicPresentation(dids, hydrated, viewer);
|
|
143873
143877
|
}
|
|
143874
143878
|
async profilesList(results, viewer, opts) {
|
|
143875
143879
|
const profiles = await this.profiles(results, viewer, opts);
|
|
@@ -144029,7 +144033,7 @@ var ActorViews = class {
|
|
|
144029
144033
|
return acc;
|
|
144030
144034
|
}, {});
|
|
144031
144035
|
}
|
|
144032
|
-
profileBasicPresentation(dids, state, viewer
|
|
144036
|
+
profileBasicPresentation(dids, state, viewer) {
|
|
144033
144037
|
const result = this.profilePresentation(dids, state, viewer);
|
|
144034
144038
|
return Object.values(result).reduce((acc, prof) => {
|
|
144035
144039
|
const profileBasic = {
|
|
@@ -144038,7 +144042,7 @@ var ActorViews = class {
|
|
|
144038
144042
|
displayName: prof.displayName,
|
|
144039
144043
|
avatar: prof.avatar,
|
|
144040
144044
|
viewer: prof.viewer,
|
|
144041
|
-
labels:
|
|
144045
|
+
labels: prof.labels
|
|
144042
144046
|
};
|
|
144043
144047
|
acc[prof.did] = profileBasic;
|
|
144044
144048
|
return acc;
|