638f5a8312
* Fix avatar path resolution in dev-env * changeset * extract dev-env assets to dedicated folder * add comment * fix fmt
2005 lines
57 KiB
Plaintext
2005 lines
57 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`feed generation does not embed taken-down feed generator records in posts 1`] = `
|
|
Object {
|
|
"author": Object {
|
|
"avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(1)@jpeg",
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"did": "user(0)",
|
|
"displayName": "bobby",
|
|
"handle": "bob.test",
|
|
"labels": Array [],
|
|
"viewer": Object {
|
|
"blockedBy": false,
|
|
"muted": false,
|
|
},
|
|
},
|
|
"cid": "cids(0)",
|
|
"embed": Object {
|
|
"$type": "app.bsky.embed.record#view",
|
|
"record": Object {
|
|
"$type": "app.bsky.embed.record#viewNotFound",
|
|
"notFound": true,
|
|
"uri": "record(1)",
|
|
},
|
|
},
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [],
|
|
"likeCount": 0,
|
|
"quoteCount": 0,
|
|
"record": Object {
|
|
"$type": "app.bsky.feed.post",
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"embed": Object {
|
|
"$type": "app.bsky.embed.record",
|
|
"record": Object {
|
|
"cid": "cids(2)",
|
|
"uri": "record(1)",
|
|
},
|
|
},
|
|
"text": "weird feed",
|
|
},
|
|
"replyCount": 0,
|
|
"repostCount": 0,
|
|
"uri": "record(0)",
|
|
"viewer": Object {
|
|
"embeddingDisabled": false,
|
|
"threadMuted": false,
|
|
},
|
|
}
|
|
`;
|
|
|
|
exports[`feed generation does not embed taken-down starter pack records in posts 1`] = `
|
|
Object {
|
|
"author": Object {
|
|
"avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(1)@jpeg",
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"did": "user(0)",
|
|
"displayName": "bobby",
|
|
"handle": "bob.test",
|
|
"labels": Array [],
|
|
"viewer": Object {
|
|
"blockedBy": false,
|
|
"muted": false,
|
|
},
|
|
},
|
|
"cid": "cids(0)",
|
|
"embed": Object {
|
|
"$type": "app.bsky.embed.record#view",
|
|
"record": Object {
|
|
"$type": "app.bsky.embed.record#viewNotFound",
|
|
"notFound": true,
|
|
"uri": "record(1)",
|
|
},
|
|
},
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [],
|
|
"likeCount": 0,
|
|
"quoteCount": 0,
|
|
"record": Object {
|
|
"$type": "app.bsky.feed.post",
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"embed": Object {
|
|
"$type": "app.bsky.embed.record",
|
|
"record": Object {
|
|
"cid": "cids(2)",
|
|
"uri": "record(1)",
|
|
},
|
|
},
|
|
"text": "annoying starter pack",
|
|
},
|
|
"replyCount": 0,
|
|
"repostCount": 0,
|
|
"uri": "record(0)",
|
|
"viewer": Object {
|
|
"embeddingDisabled": false,
|
|
"threadMuted": false,
|
|
},
|
|
}
|
|
`;
|
|
|
|
exports[`feed generation embeds feed generator records in posts 1`] = `
|
|
Object {
|
|
"author": Object {
|
|
"avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(1)@jpeg",
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"did": "user(0)",
|
|
"displayName": "bobby",
|
|
"handle": "bob.test",
|
|
"labels": Array [],
|
|
"viewer": Object {
|
|
"blockedBy": false,
|
|
"muted": false,
|
|
},
|
|
},
|
|
"cid": "cids(0)",
|
|
"embed": Object {
|
|
"$type": "app.bsky.embed.record#view",
|
|
"record": Object {
|
|
"$type": "app.bsky.feed.defs#generatorView",
|
|
"cid": "cids(2)",
|
|
"creator": Object {
|
|
"avatar": "https://bsky.public.url/img/avatar/plain/user(4)/cids(1)@jpeg",
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"description": "its me!",
|
|
"did": "user(3)",
|
|
"displayName": "ali",
|
|
"handle": "alice.test",
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [
|
|
Object {
|
|
"cid": "cids(3)",
|
|
"cts": "1970-01-01T00:00:00.000Z",
|
|
"src": "user(3)",
|
|
"uri": "record(4)",
|
|
"val": "self-label-a",
|
|
},
|
|
Object {
|
|
"cid": "cids(3)",
|
|
"cts": "1970-01-01T00:00:00.000Z",
|
|
"src": "user(3)",
|
|
"uri": "record(4)",
|
|
"val": "self-label-b",
|
|
},
|
|
],
|
|
"viewer": Object {
|
|
"blockedBy": false,
|
|
"followedBy": "record(3)",
|
|
"following": "record(2)",
|
|
"muted": false,
|
|
},
|
|
},
|
|
"description": "Provides all feed candidates",
|
|
"did": "user(2)",
|
|
"displayName": "All",
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [],
|
|
"likeCount": 2,
|
|
"uri": "record(1)",
|
|
"viewer": Object {
|
|
"like": "record(5)",
|
|
},
|
|
},
|
|
},
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [],
|
|
"likeCount": 0,
|
|
"quoteCount": 0,
|
|
"record": Object {
|
|
"$type": "app.bsky.feed.post",
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"embed": Object {
|
|
"$type": "app.bsky.embed.record",
|
|
"record": Object {
|
|
"cid": "cids(2)",
|
|
"uri": "record(1)",
|
|
},
|
|
},
|
|
"text": "cool feed!",
|
|
},
|
|
"replyCount": 0,
|
|
"repostCount": 0,
|
|
"uri": "record(0)",
|
|
"viewer": Object {
|
|
"embeddingDisabled": false,
|
|
"threadMuted": false,
|
|
},
|
|
}
|
|
`;
|
|
|
|
exports[`feed generation embeds starter pack records in posts 1`] = `
|
|
Object {
|
|
"author": Object {
|
|
"avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(1)@jpeg",
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"did": "user(0)",
|
|
"displayName": "bobby",
|
|
"handle": "bob.test",
|
|
"labels": Array [],
|
|
"viewer": Object {
|
|
"blockedBy": false,
|
|
"muted": false,
|
|
},
|
|
},
|
|
"cid": "cids(0)",
|
|
"embed": Object {
|
|
"$type": "app.bsky.embed.record#view",
|
|
"record": Object {
|
|
"$type": "app.bsky.graph.defs#starterPackViewBasic",
|
|
"cid": "cids(2)",
|
|
"creator": Object {
|
|
"avatar": "https://bsky.public.url/img/avatar/plain/user(3)/cids(1)@jpeg",
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"did": "user(2)",
|
|
"displayName": "ali",
|
|
"handle": "alice.test",
|
|
"labels": Array [
|
|
Object {
|
|
"cid": "cids(3)",
|
|
"cts": "1970-01-01T00:00:00.000Z",
|
|
"src": "user(2)",
|
|
"uri": "record(5)",
|
|
"val": "self-label-a",
|
|
},
|
|
Object {
|
|
"cid": "cids(3)",
|
|
"cts": "1970-01-01T00:00:00.000Z",
|
|
"src": "user(2)",
|
|
"uri": "record(5)",
|
|
"val": "self-label-b",
|
|
},
|
|
],
|
|
"viewer": Object {
|
|
"blockedBy": false,
|
|
"followedBy": "record(4)",
|
|
"following": "record(3)",
|
|
"muted": false,
|
|
},
|
|
},
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"joinedAllTimeCount": 0,
|
|
"joinedWeekCount": 0,
|
|
"labels": Array [],
|
|
"record": Object {
|
|
"$type": "app.bsky.graph.starterpack",
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"description": "",
|
|
"descriptionFacets": Array [],
|
|
"feeds": Array [],
|
|
"list": "record(2)",
|
|
"name": "awesome starter pack!",
|
|
},
|
|
"uri": "record(1)",
|
|
},
|
|
},
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [],
|
|
"likeCount": 0,
|
|
"quoteCount": 0,
|
|
"record": Object {
|
|
"$type": "app.bsky.feed.post",
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"embed": Object {
|
|
"$type": "app.bsky.embed.record",
|
|
"record": Object {
|
|
"cid": "cids(2)",
|
|
"uri": "record(1)",
|
|
},
|
|
},
|
|
"text": "sick starter pack!",
|
|
},
|
|
"replyCount": 0,
|
|
"repostCount": 0,
|
|
"uri": "record(0)",
|
|
"viewer": Object {
|
|
"embeddingDisabled": false,
|
|
"threadMuted": false,
|
|
},
|
|
}
|
|
`;
|
|
|
|
exports[`feed generation getActorFeeds fetches feed generators by actor. 1`] = `
|
|
Array [
|
|
Object {
|
|
"cid": "cids(0)",
|
|
"creator": Object {
|
|
"avatar": "https://bsky.public.url/img/avatar/plain/user(2)/cids(1)@jpeg",
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"description": "its me!",
|
|
"did": "user(1)",
|
|
"displayName": "ali",
|
|
"handle": "alice.test",
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [
|
|
Object {
|
|
"cid": "cids(2)",
|
|
"cts": "1970-01-01T00:00:00.000Z",
|
|
"src": "user(1)",
|
|
"uri": "record(3)",
|
|
"val": "self-label-a",
|
|
},
|
|
Object {
|
|
"cid": "cids(2)",
|
|
"cts": "1970-01-01T00:00:00.000Z",
|
|
"src": "user(1)",
|
|
"uri": "record(3)",
|
|
"val": "self-label-b",
|
|
},
|
|
],
|
|
"viewer": Object {
|
|
"blockedBy": false,
|
|
"followedBy": "record(2)",
|
|
"following": "record(1)",
|
|
"muted": false,
|
|
},
|
|
},
|
|
"description": "Provides odd-indexed feed candidates",
|
|
"did": "user(0)",
|
|
"displayName": "Odd",
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [],
|
|
"likeCount": 0,
|
|
"uri": "record(0)",
|
|
"viewer": Object {},
|
|
},
|
|
Object {
|
|
"cid": "cids(3)",
|
|
"creator": Object {
|
|
"avatar": "https://bsky.public.url/img/avatar/plain/user(2)/cids(1)@jpeg",
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"description": "its me!",
|
|
"did": "user(1)",
|
|
"displayName": "ali",
|
|
"handle": "alice.test",
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [
|
|
Object {
|
|
"cid": "cids(2)",
|
|
"cts": "1970-01-01T00:00:00.000Z",
|
|
"src": "user(1)",
|
|
"uri": "record(3)",
|
|
"val": "self-label-a",
|
|
},
|
|
Object {
|
|
"cid": "cids(2)",
|
|
"cts": "1970-01-01T00:00:00.000Z",
|
|
"src": "user(1)",
|
|
"uri": "record(3)",
|
|
"val": "self-label-b",
|
|
},
|
|
],
|
|
"viewer": Object {
|
|
"blockedBy": false,
|
|
"followedBy": "record(2)",
|
|
"following": "record(1)",
|
|
"muted": false,
|
|
},
|
|
},
|
|
"description": "Provides all feed candidates when authed",
|
|
"did": "user(0)",
|
|
"displayName": "Needs Auth",
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [],
|
|
"likeCount": 0,
|
|
"uri": "record(4)",
|
|
"viewer": Object {},
|
|
},
|
|
Object {
|
|
"cid": "cids(4)",
|
|
"creator": Object {
|
|
"avatar": "https://bsky.public.url/img/avatar/plain/user(2)/cids(1)@jpeg",
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"description": "its me!",
|
|
"did": "user(1)",
|
|
"displayName": "ali",
|
|
"handle": "alice.test",
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [
|
|
Object {
|
|
"cid": "cids(2)",
|
|
"cts": "1970-01-01T00:00:00.000Z",
|
|
"src": "user(1)",
|
|
"uri": "record(3)",
|
|
"val": "self-label-a",
|
|
},
|
|
Object {
|
|
"cid": "cids(2)",
|
|
"cts": "1970-01-01T00:00:00.000Z",
|
|
"src": "user(1)",
|
|
"uri": "record(3)",
|
|
"val": "self-label-b",
|
|
},
|
|
],
|
|
"viewer": Object {
|
|
"blockedBy": false,
|
|
"followedBy": "record(2)",
|
|
"following": "record(1)",
|
|
"muted": false,
|
|
},
|
|
},
|
|
"description": "Echoes back the same cursor it received",
|
|
"did": "user(0)",
|
|
"displayName": "Bad Pagination Cursor",
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [],
|
|
"likeCount": 0,
|
|
"uri": "record(5)",
|
|
"viewer": Object {},
|
|
},
|
|
Object {
|
|
"cid": "cids(5)",
|
|
"creator": Object {
|
|
"avatar": "https://bsky.public.url/img/avatar/plain/user(2)/cids(1)@jpeg",
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"description": "its me!",
|
|
"did": "user(1)",
|
|
"displayName": "ali",
|
|
"handle": "alice.test",
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [
|
|
Object {
|
|
"cid": "cids(2)",
|
|
"cts": "1970-01-01T00:00:00.000Z",
|
|
"src": "user(1)",
|
|
"uri": "record(3)",
|
|
"val": "self-label-a",
|
|
},
|
|
Object {
|
|
"cid": "cids(2)",
|
|
"cts": "1970-01-01T00:00:00.000Z",
|
|
"src": "user(1)",
|
|
"uri": "record(3)",
|
|
"val": "self-label-b",
|
|
},
|
|
],
|
|
"viewer": Object {
|
|
"blockedBy": false,
|
|
"followedBy": "record(2)",
|
|
"following": "record(1)",
|
|
"muted": false,
|
|
},
|
|
},
|
|
"description": "Provides all feed candidates, blindly ignoring pagination limit",
|
|
"did": "user(0)",
|
|
"displayName": "Bad Pagination Limit",
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [],
|
|
"likeCount": 0,
|
|
"uri": "record(6)",
|
|
"viewer": Object {},
|
|
},
|
|
Object {
|
|
"cid": "cids(6)",
|
|
"creator": Object {
|
|
"avatar": "https://bsky.public.url/img/avatar/plain/user(2)/cids(1)@jpeg",
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"description": "its me!",
|
|
"did": "user(1)",
|
|
"displayName": "ali",
|
|
"handle": "alice.test",
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [
|
|
Object {
|
|
"cid": "cids(2)",
|
|
"cts": "1970-01-01T00:00:00.000Z",
|
|
"src": "user(1)",
|
|
"uri": "record(3)",
|
|
"val": "self-label-a",
|
|
},
|
|
Object {
|
|
"cid": "cids(2)",
|
|
"cts": "1970-01-01T00:00:00.000Z",
|
|
"src": "user(1)",
|
|
"uri": "record(3)",
|
|
"val": "self-label-b",
|
|
},
|
|
],
|
|
"viewer": Object {
|
|
"blockedBy": false,
|
|
"followedBy": "record(2)",
|
|
"following": "record(1)",
|
|
"muted": false,
|
|
},
|
|
},
|
|
"description": "Provides even-indexed feed candidates",
|
|
"did": "user(0)",
|
|
"displayName": "Even",
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [],
|
|
"likeCount": 0,
|
|
"uri": "record(7)",
|
|
"viewer": Object {},
|
|
},
|
|
Object {
|
|
"cid": "cids(7)",
|
|
"creator": Object {
|
|
"avatar": "https://bsky.public.url/img/avatar/plain/user(2)/cids(1)@jpeg",
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"description": "its me!",
|
|
"did": "user(1)",
|
|
"displayName": "ali",
|
|
"handle": "alice.test",
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [
|
|
Object {
|
|
"cid": "cids(2)",
|
|
"cts": "1970-01-01T00:00:00.000Z",
|
|
"src": "user(1)",
|
|
"uri": "record(3)",
|
|
"val": "self-label-a",
|
|
},
|
|
Object {
|
|
"cid": "cids(2)",
|
|
"cts": "1970-01-01T00:00:00.000Z",
|
|
"src": "user(1)",
|
|
"uri": "record(3)",
|
|
"val": "self-label-b",
|
|
},
|
|
],
|
|
"viewer": Object {
|
|
"blockedBy": false,
|
|
"followedBy": "record(2)",
|
|
"following": "record(1)",
|
|
"muted": false,
|
|
},
|
|
},
|
|
"description": "Provides all feed candidates",
|
|
"did": "user(0)",
|
|
"displayName": "All",
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [],
|
|
"likeCount": 2,
|
|
"uri": "record(8)",
|
|
"viewer": Object {
|
|
"like": "record(9)",
|
|
},
|
|
},
|
|
]
|
|
`;
|
|
|
|
exports[`feed generation getFeed paginates, handling replies and reposts. 1`] = `
|
|
Array [
|
|
Object {
|
|
"feedContext": "item-0",
|
|
"post": Object {
|
|
"author": Object {
|
|
"avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(1)@jpeg",
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"did": "user(0)",
|
|
"displayName": "ali",
|
|
"handle": "alice.test",
|
|
"labels": Array [
|
|
Object {
|
|
"cid": "cids(2)",
|
|
"cts": "1970-01-01T00:00:00.000Z",
|
|
"src": "user(0)",
|
|
"uri": "record(1)",
|
|
"val": "self-label-a",
|
|
},
|
|
Object {
|
|
"cid": "cids(2)",
|
|
"cts": "1970-01-01T00:00:00.000Z",
|
|
"src": "user(0)",
|
|
"uri": "record(1)",
|
|
"val": "self-label-b",
|
|
},
|
|
],
|
|
"viewer": Object {
|
|
"blockedBy": false,
|
|
"muted": false,
|
|
},
|
|
},
|
|
"cid": "cids(0)",
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [
|
|
Object {
|
|
"cid": "cids(0)",
|
|
"cts": "1970-01-01T00:00:00.000Z",
|
|
"src": "user(0)",
|
|
"uri": "record(0)",
|
|
"val": "self-label",
|
|
},
|
|
],
|
|
"likeCount": 0,
|
|
"quoteCount": 0,
|
|
"record": Object {
|
|
"$type": "app.bsky.feed.post",
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Object {
|
|
"$type": "com.atproto.label.defs#selfLabels",
|
|
"values": Array [
|
|
Object {
|
|
"val": "self-label",
|
|
},
|
|
],
|
|
},
|
|
"text": "hey there",
|
|
},
|
|
"replyCount": 0,
|
|
"repostCount": 0,
|
|
"uri": "record(0)",
|
|
"viewer": Object {
|
|
"embeddingDisabled": false,
|
|
"threadMuted": false,
|
|
},
|
|
},
|
|
},
|
|
Object {
|
|
"feedContext": "item-1",
|
|
"post": Object {
|
|
"author": Object {
|
|
"avatar": "https://bsky.public.url/img/avatar/plain/user(3)/cids(1)@jpeg",
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"did": "user(2)",
|
|
"displayName": "bobby",
|
|
"handle": "bob.test",
|
|
"labels": Array [],
|
|
"viewer": Object {
|
|
"blockedBy": false,
|
|
"followedBy": "record(4)",
|
|
"following": "record(3)",
|
|
"muted": false,
|
|
},
|
|
},
|
|
"cid": "cids(3)",
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [],
|
|
"likeCount": 0,
|
|
"quoteCount": 1,
|
|
"record": Object {
|
|
"$type": "app.bsky.feed.post",
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"langs": Array [
|
|
"en-US",
|
|
"i-klingon",
|
|
],
|
|
"text": "bob back at it again!",
|
|
},
|
|
"replyCount": 0,
|
|
"repostCount": 0,
|
|
"uri": "record(2)",
|
|
"viewer": Object {
|
|
"embeddingDisabled": false,
|
|
"threadMuted": false,
|
|
},
|
|
},
|
|
},
|
|
Object {
|
|
"feedContext": "item-2",
|
|
"post": Object {
|
|
"author": Object {
|
|
"did": "user(4)",
|
|
"handle": "carol.test",
|
|
"labels": Array [],
|
|
"viewer": Object {
|
|
"blockedBy": false,
|
|
"followedBy": "record(7)",
|
|
"following": "record(6)",
|
|
"muted": false,
|
|
},
|
|
},
|
|
"cid": "cids(4)",
|
|
"embed": Object {
|
|
"$type": "app.bsky.embed.recordWithMedia#view",
|
|
"media": Object {
|
|
"$type": "app.bsky.embed.images#view",
|
|
"images": Array [
|
|
Object {
|
|
"alt": "../dev-env/assets/key-landscape-small.jpg",
|
|
"fullsize": "https://bsky.public.url/img/feed_fullsize/plain/user(5)/cids(5)@jpeg",
|
|
"thumb": "https://bsky.public.url/img/feed_thumbnail/plain/user(5)/cids(5)@jpeg",
|
|
},
|
|
Object {
|
|
"alt": "../dev-env/assets/key-alt.jpg",
|
|
"fullsize": "https://bsky.public.url/img/feed_fullsize/plain/user(5)/cids(6)@jpeg",
|
|
"thumb": "https://bsky.public.url/img/feed_thumbnail/plain/user(5)/cids(6)@jpeg",
|
|
},
|
|
],
|
|
},
|
|
"record": Object {
|
|
"record": Object {
|
|
"$type": "app.bsky.embed.record#viewRecord",
|
|
"author": Object {
|
|
"avatar": "https://bsky.public.url/img/avatar/plain/user(3)/cids(1)@jpeg",
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"did": "user(2)",
|
|
"displayName": "bobby",
|
|
"handle": "bob.test",
|
|
"labels": Array [],
|
|
"viewer": Object {
|
|
"blockedBy": false,
|
|
"followedBy": "record(4)",
|
|
"following": "record(3)",
|
|
"muted": false,
|
|
},
|
|
},
|
|
"cid": "cids(3)",
|
|
"embeds": Array [],
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [],
|
|
"likeCount": 0,
|
|
"quoteCount": 1,
|
|
"replyCount": 0,
|
|
"repostCount": 0,
|
|
"uri": "record(2)",
|
|
"value": Object {
|
|
"$type": "app.bsky.feed.post",
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"langs": Array [
|
|
"en-US",
|
|
"i-klingon",
|
|
],
|
|
"text": "bob back at it again!",
|
|
},
|
|
},
|
|
},
|
|
},
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [],
|
|
"likeCount": 2,
|
|
"quoteCount": 1,
|
|
"record": Object {
|
|
"$type": "app.bsky.feed.post",
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"embed": Object {
|
|
"$type": "app.bsky.embed.recordWithMedia",
|
|
"media": Object {
|
|
"$type": "app.bsky.embed.images",
|
|
"images": Array [
|
|
Object {
|
|
"alt": "../dev-env/assets/key-landscape-small.jpg",
|
|
"image": Object {
|
|
"$type": "blob",
|
|
"mimeType": "image/jpeg",
|
|
"ref": Object {
|
|
"$link": "cids(5)",
|
|
},
|
|
"size": 4114,
|
|
},
|
|
},
|
|
Object {
|
|
"alt": "../dev-env/assets/key-alt.jpg",
|
|
"image": Object {
|
|
"$type": "blob",
|
|
"mimeType": "image/jpeg",
|
|
"ref": Object {
|
|
"$link": "cids(6)",
|
|
},
|
|
"size": 12736,
|
|
},
|
|
},
|
|
],
|
|
},
|
|
"record": Object {
|
|
"record": Object {
|
|
"cid": "cids(3)",
|
|
"uri": "record(2)",
|
|
},
|
|
},
|
|
},
|
|
"text": "hi im carol",
|
|
},
|
|
"replyCount": 0,
|
|
"repostCount": 0,
|
|
"uri": "record(5)",
|
|
"viewer": Object {
|
|
"embeddingDisabled": false,
|
|
"like": "record(8)",
|
|
"threadMuted": false,
|
|
},
|
|
},
|
|
},
|
|
Object {
|
|
"feedContext": "item-4",
|
|
"post": Object {
|
|
"author": Object {
|
|
"did": "user(4)",
|
|
"handle": "carol.test",
|
|
"labels": Array [],
|
|
"viewer": Object {
|
|
"blockedBy": false,
|
|
"followedBy": "record(7)",
|
|
"following": "record(6)",
|
|
"muted": false,
|
|
},
|
|
},
|
|
"cid": "cids(7)",
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [],
|
|
"likeCount": 0,
|
|
"quoteCount": 0,
|
|
"record": Object {
|
|
"$type": "app.bsky.feed.post",
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"reply": Object {
|
|
"parent": Object {
|
|
"cid": "cids(8)",
|
|
"uri": "record(10)",
|
|
},
|
|
"root": Object {
|
|
"cid": "cids(8)",
|
|
"uri": "record(10)",
|
|
},
|
|
},
|
|
"text": "of course",
|
|
},
|
|
"replyCount": 0,
|
|
"repostCount": 0,
|
|
"uri": "record(9)",
|
|
"viewer": Object {
|
|
"embeddingDisabled": false,
|
|
"threadMuted": false,
|
|
},
|
|
},
|
|
"reply": Object {
|
|
"parent": Object {
|
|
"$type": "app.bsky.feed.defs#postView",
|
|
"author": Object {
|
|
"avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(1)@jpeg",
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"did": "user(0)",
|
|
"displayName": "ali",
|
|
"handle": "alice.test",
|
|
"labels": Array [
|
|
Object {
|
|
"cid": "cids(2)",
|
|
"cts": "1970-01-01T00:00:00.000Z",
|
|
"src": "user(0)",
|
|
"uri": "record(1)",
|
|
"val": "self-label-a",
|
|
},
|
|
Object {
|
|
"cid": "cids(2)",
|
|
"cts": "1970-01-01T00:00:00.000Z",
|
|
"src": "user(0)",
|
|
"uri": "record(1)",
|
|
"val": "self-label-b",
|
|
},
|
|
],
|
|
"viewer": Object {
|
|
"blockedBy": false,
|
|
"muted": false,
|
|
},
|
|
},
|
|
"cid": "cids(8)",
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [],
|
|
"likeCount": 3,
|
|
"quoteCount": 0,
|
|
"record": Object {
|
|
"$type": "app.bsky.feed.post",
|
|
"createdAt": "1970-01-01T00:00:00.000000Z",
|
|
"text": "again",
|
|
},
|
|
"replyCount": 2,
|
|
"repostCount": 1,
|
|
"uri": "record(10)",
|
|
"viewer": Object {
|
|
"embeddingDisabled": false,
|
|
"threadMuted": false,
|
|
},
|
|
},
|
|
"root": Object {
|
|
"$type": "app.bsky.feed.defs#postView",
|
|
"author": Object {
|
|
"avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(1)@jpeg",
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"did": "user(0)",
|
|
"displayName": "ali",
|
|
"handle": "alice.test",
|
|
"labels": Array [
|
|
Object {
|
|
"cid": "cids(2)",
|
|
"cts": "1970-01-01T00:00:00.000Z",
|
|
"src": "user(0)",
|
|
"uri": "record(1)",
|
|
"val": "self-label-a",
|
|
},
|
|
Object {
|
|
"cid": "cids(2)",
|
|
"cts": "1970-01-01T00:00:00.000Z",
|
|
"src": "user(0)",
|
|
"uri": "record(1)",
|
|
"val": "self-label-b",
|
|
},
|
|
],
|
|
"viewer": Object {
|
|
"blockedBy": false,
|
|
"muted": false,
|
|
},
|
|
},
|
|
"cid": "cids(8)",
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [],
|
|
"likeCount": 3,
|
|
"quoteCount": 0,
|
|
"record": Object {
|
|
"$type": "app.bsky.feed.post",
|
|
"createdAt": "1970-01-01T00:00:00.000000Z",
|
|
"text": "again",
|
|
},
|
|
"replyCount": 2,
|
|
"repostCount": 1,
|
|
"uri": "record(10)",
|
|
"viewer": Object {
|
|
"embeddingDisabled": false,
|
|
"threadMuted": false,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
Object {
|
|
"feedContext": "item-5",
|
|
"post": Object {
|
|
"author": Object {
|
|
"associated": Object {
|
|
"chat": Object {
|
|
"allowIncoming": "none",
|
|
},
|
|
},
|
|
"did": "user(6)",
|
|
"handle": "dan.test",
|
|
"labels": Array [],
|
|
"viewer": Object {
|
|
"blockedBy": false,
|
|
"following": "record(12)",
|
|
"muted": false,
|
|
},
|
|
},
|
|
"cid": "cids(9)",
|
|
"embed": Object {
|
|
"$type": "app.bsky.embed.record#view",
|
|
"record": Object {
|
|
"$type": "app.bsky.embed.record#viewRecord",
|
|
"author": Object {
|
|
"did": "user(4)",
|
|
"handle": "carol.test",
|
|
"labels": Array [],
|
|
"viewer": Object {
|
|
"blockedBy": false,
|
|
"followedBy": "record(7)",
|
|
"following": "record(6)",
|
|
"muted": false,
|
|
},
|
|
},
|
|
"cid": "cids(4)",
|
|
"embeds": Array [
|
|
Object {
|
|
"$type": "app.bsky.embed.recordWithMedia#view",
|
|
"media": Object {
|
|
"$type": "app.bsky.embed.images#view",
|
|
"images": Array [
|
|
Object {
|
|
"alt": "../dev-env/assets/key-landscape-small.jpg",
|
|
"fullsize": "https://bsky.public.url/img/feed_fullsize/plain/user(5)/cids(5)@jpeg",
|
|
"thumb": "https://bsky.public.url/img/feed_thumbnail/plain/user(5)/cids(5)@jpeg",
|
|
},
|
|
Object {
|
|
"alt": "../dev-env/assets/key-alt.jpg",
|
|
"fullsize": "https://bsky.public.url/img/feed_fullsize/plain/user(5)/cids(6)@jpeg",
|
|
"thumb": "https://bsky.public.url/img/feed_thumbnail/plain/user(5)/cids(6)@jpeg",
|
|
},
|
|
],
|
|
},
|
|
"record": Object {
|
|
"record": Object {
|
|
"$type": "app.bsky.embed.record#viewRecord",
|
|
"author": Object {
|
|
"avatar": "https://bsky.public.url/img/avatar/plain/user(3)/cids(1)@jpeg",
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"did": "user(2)",
|
|
"displayName": "bobby",
|
|
"handle": "bob.test",
|
|
"labels": Array [],
|
|
"viewer": Object {
|
|
"blockedBy": false,
|
|
"followedBy": "record(4)",
|
|
"following": "record(3)",
|
|
"muted": false,
|
|
},
|
|
},
|
|
"cid": "cids(3)",
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [],
|
|
"likeCount": 0,
|
|
"quoteCount": 1,
|
|
"replyCount": 0,
|
|
"repostCount": 0,
|
|
"uri": "record(2)",
|
|
"value": Object {
|
|
"$type": "app.bsky.feed.post",
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"langs": Array [
|
|
"en-US",
|
|
"i-klingon",
|
|
],
|
|
"text": "bob back at it again!",
|
|
},
|
|
},
|
|
},
|
|
},
|
|
],
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [],
|
|
"likeCount": 2,
|
|
"quoteCount": 1,
|
|
"replyCount": 0,
|
|
"repostCount": 0,
|
|
"uri": "record(5)",
|
|
"value": Object {
|
|
"$type": "app.bsky.feed.post",
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"embed": Object {
|
|
"$type": "app.bsky.embed.recordWithMedia",
|
|
"media": Object {
|
|
"$type": "app.bsky.embed.images",
|
|
"images": Array [
|
|
Object {
|
|
"alt": "../dev-env/assets/key-landscape-small.jpg",
|
|
"image": Object {
|
|
"$type": "blob",
|
|
"mimeType": "image/jpeg",
|
|
"ref": Object {
|
|
"$link": "cids(5)",
|
|
},
|
|
"size": 4114,
|
|
},
|
|
},
|
|
Object {
|
|
"alt": "../dev-env/assets/key-alt.jpg",
|
|
"image": Object {
|
|
"$type": "blob",
|
|
"mimeType": "image/jpeg",
|
|
"ref": Object {
|
|
"$link": "cids(6)",
|
|
},
|
|
"size": 12736,
|
|
},
|
|
},
|
|
],
|
|
},
|
|
"record": Object {
|
|
"record": Object {
|
|
"cid": "cids(3)",
|
|
"uri": "record(2)",
|
|
},
|
|
},
|
|
},
|
|
"text": "hi im carol",
|
|
},
|
|
},
|
|
},
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [],
|
|
"likeCount": 0,
|
|
"quoteCount": 1,
|
|
"record": Object {
|
|
"$type": "app.bsky.feed.post",
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"embed": Object {
|
|
"$type": "app.bsky.embed.record",
|
|
"record": Object {
|
|
"cid": "cids(4)",
|
|
"uri": "record(5)",
|
|
},
|
|
},
|
|
"facets": Array [
|
|
Object {
|
|
"features": Array [
|
|
Object {
|
|
"$type": "app.bsky.richtext.facet#mention",
|
|
"did": "user(0)",
|
|
},
|
|
],
|
|
"index": Object {
|
|
"byteEnd": 18,
|
|
"byteStart": 0,
|
|
},
|
|
},
|
|
],
|
|
"text": "@alice.bluesky.xyz is the best",
|
|
},
|
|
"replyCount": 0,
|
|
"repostCount": 1,
|
|
"uri": "record(11)",
|
|
"viewer": Object {
|
|
"embeddingDisabled": false,
|
|
"threadMuted": false,
|
|
},
|
|
},
|
|
"reason": Object {
|
|
"$type": "app.bsky.feed.defs#reasonRepost",
|
|
"by": Object {
|
|
"did": "user(4)",
|
|
"handle": "carol.test",
|
|
"labels": Array [],
|
|
"viewer": Object {
|
|
"blockedBy": false,
|
|
"followedBy": "record(7)",
|
|
"following": "record(6)",
|
|
"muted": false,
|
|
},
|
|
},
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
},
|
|
},
|
|
]
|
|
`;
|
|
|
|
exports[`feed generation getFeed resolves basic feed contents without auth. 1`] = `
|
|
Array [
|
|
Object {
|
|
"feedContext": "item-0",
|
|
"post": Object {
|
|
"author": Object {
|
|
"avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(1)@jpeg",
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"did": "user(0)",
|
|
"displayName": "ali",
|
|
"handle": "alice.test",
|
|
"labels": Array [
|
|
Object {
|
|
"cid": "cids(2)",
|
|
"cts": "1970-01-01T00:00:00.000Z",
|
|
"src": "user(0)",
|
|
"uri": "record(1)",
|
|
"val": "self-label-a",
|
|
},
|
|
Object {
|
|
"cid": "cids(2)",
|
|
"cts": "1970-01-01T00:00:00.000Z",
|
|
"src": "user(0)",
|
|
"uri": "record(1)",
|
|
"val": "self-label-b",
|
|
},
|
|
],
|
|
},
|
|
"cid": "cids(0)",
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [
|
|
Object {
|
|
"cid": "cids(0)",
|
|
"cts": "1970-01-01T00:00:00.000Z",
|
|
"src": "user(0)",
|
|
"uri": "record(0)",
|
|
"val": "self-label",
|
|
},
|
|
],
|
|
"likeCount": 0,
|
|
"quoteCount": 0,
|
|
"record": Object {
|
|
"$type": "app.bsky.feed.post",
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Object {
|
|
"$type": "com.atproto.label.defs#selfLabels",
|
|
"values": Array [
|
|
Object {
|
|
"val": "self-label",
|
|
},
|
|
],
|
|
},
|
|
"text": "hey there",
|
|
},
|
|
"replyCount": 0,
|
|
"repostCount": 0,
|
|
"uri": "record(0)",
|
|
},
|
|
},
|
|
Object {
|
|
"feedContext": "item-2",
|
|
"post": Object {
|
|
"author": Object {
|
|
"did": "user(2)",
|
|
"handle": "carol.test",
|
|
"labels": Array [],
|
|
},
|
|
"cid": "cids(3)",
|
|
"embed": Object {
|
|
"$type": "app.bsky.embed.recordWithMedia#view",
|
|
"media": Object {
|
|
"$type": "app.bsky.embed.images#view",
|
|
"images": Array [
|
|
Object {
|
|
"alt": "../dev-env/assets/key-landscape-small.jpg",
|
|
"fullsize": "https://bsky.public.url/img/feed_fullsize/plain/user(3)/cids(4)@jpeg",
|
|
"thumb": "https://bsky.public.url/img/feed_thumbnail/plain/user(3)/cids(4)@jpeg",
|
|
},
|
|
Object {
|
|
"alt": "../dev-env/assets/key-alt.jpg",
|
|
"fullsize": "https://bsky.public.url/img/feed_fullsize/plain/user(3)/cids(5)@jpeg",
|
|
"thumb": "https://bsky.public.url/img/feed_thumbnail/plain/user(3)/cids(5)@jpeg",
|
|
},
|
|
],
|
|
},
|
|
"record": Object {
|
|
"record": Object {
|
|
"$type": "app.bsky.embed.record#viewRecord",
|
|
"author": Object {
|
|
"avatar": "https://bsky.public.url/img/avatar/plain/user(5)/cids(1)@jpeg",
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"did": "user(4)",
|
|
"displayName": "bobby",
|
|
"handle": "bob.test",
|
|
"labels": Array [],
|
|
},
|
|
"cid": "cids(6)",
|
|
"embeds": Array [],
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [],
|
|
"likeCount": 0,
|
|
"quoteCount": 1,
|
|
"replyCount": 0,
|
|
"repostCount": 0,
|
|
"uri": "record(3)",
|
|
"value": Object {
|
|
"$type": "app.bsky.feed.post",
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"langs": Array [
|
|
"en-US",
|
|
"i-klingon",
|
|
],
|
|
"text": "bob back at it again!",
|
|
},
|
|
},
|
|
},
|
|
},
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [],
|
|
"likeCount": 2,
|
|
"quoteCount": 1,
|
|
"record": Object {
|
|
"$type": "app.bsky.feed.post",
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"embed": Object {
|
|
"$type": "app.bsky.embed.recordWithMedia",
|
|
"media": Object {
|
|
"$type": "app.bsky.embed.images",
|
|
"images": Array [
|
|
Object {
|
|
"alt": "../dev-env/assets/key-landscape-small.jpg",
|
|
"image": Object {
|
|
"$type": "blob",
|
|
"mimeType": "image/jpeg",
|
|
"ref": Object {
|
|
"$link": "cids(4)",
|
|
},
|
|
"size": 4114,
|
|
},
|
|
},
|
|
Object {
|
|
"alt": "../dev-env/assets/key-alt.jpg",
|
|
"image": Object {
|
|
"$type": "blob",
|
|
"mimeType": "image/jpeg",
|
|
"ref": Object {
|
|
"$link": "cids(5)",
|
|
},
|
|
"size": 12736,
|
|
},
|
|
},
|
|
],
|
|
},
|
|
"record": Object {
|
|
"record": Object {
|
|
"cid": "cids(6)",
|
|
"uri": "record(3)",
|
|
},
|
|
},
|
|
},
|
|
"text": "hi im carol",
|
|
},
|
|
"replyCount": 0,
|
|
"repostCount": 0,
|
|
"uri": "record(2)",
|
|
},
|
|
},
|
|
Object {
|
|
"feedContext": "item-4",
|
|
"post": Object {
|
|
"author": Object {
|
|
"did": "user(2)",
|
|
"handle": "carol.test",
|
|
"labels": Array [],
|
|
},
|
|
"cid": "cids(7)",
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [],
|
|
"likeCount": 0,
|
|
"quoteCount": 0,
|
|
"record": Object {
|
|
"$type": "app.bsky.feed.post",
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"reply": Object {
|
|
"parent": Object {
|
|
"cid": "cids(8)",
|
|
"uri": "record(5)",
|
|
},
|
|
"root": Object {
|
|
"cid": "cids(8)",
|
|
"uri": "record(5)",
|
|
},
|
|
},
|
|
"text": "of course",
|
|
},
|
|
"replyCount": 0,
|
|
"repostCount": 0,
|
|
"uri": "record(4)",
|
|
},
|
|
"reply": Object {
|
|
"parent": Object {
|
|
"$type": "app.bsky.feed.defs#postView",
|
|
"author": Object {
|
|
"avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(1)@jpeg",
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"did": "user(0)",
|
|
"displayName": "ali",
|
|
"handle": "alice.test",
|
|
"labels": Array [
|
|
Object {
|
|
"cid": "cids(2)",
|
|
"cts": "1970-01-01T00:00:00.000Z",
|
|
"src": "user(0)",
|
|
"uri": "record(1)",
|
|
"val": "self-label-a",
|
|
},
|
|
Object {
|
|
"cid": "cids(2)",
|
|
"cts": "1970-01-01T00:00:00.000Z",
|
|
"src": "user(0)",
|
|
"uri": "record(1)",
|
|
"val": "self-label-b",
|
|
},
|
|
],
|
|
},
|
|
"cid": "cids(8)",
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [],
|
|
"likeCount": 3,
|
|
"quoteCount": 0,
|
|
"record": Object {
|
|
"$type": "app.bsky.feed.post",
|
|
"createdAt": "1970-01-01T00:00:00.000000Z",
|
|
"text": "again",
|
|
},
|
|
"replyCount": 2,
|
|
"repostCount": 1,
|
|
"uri": "record(5)",
|
|
},
|
|
"root": Object {
|
|
"$type": "app.bsky.feed.defs#postView",
|
|
"author": Object {
|
|
"avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(1)@jpeg",
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"did": "user(0)",
|
|
"displayName": "ali",
|
|
"handle": "alice.test",
|
|
"labels": Array [
|
|
Object {
|
|
"cid": "cids(2)",
|
|
"cts": "1970-01-01T00:00:00.000Z",
|
|
"src": "user(0)",
|
|
"uri": "record(1)",
|
|
"val": "self-label-a",
|
|
},
|
|
Object {
|
|
"cid": "cids(2)",
|
|
"cts": "1970-01-01T00:00:00.000Z",
|
|
"src": "user(0)",
|
|
"uri": "record(1)",
|
|
"val": "self-label-b",
|
|
},
|
|
],
|
|
},
|
|
"cid": "cids(8)",
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [],
|
|
"likeCount": 3,
|
|
"quoteCount": 0,
|
|
"record": Object {
|
|
"$type": "app.bsky.feed.post",
|
|
"createdAt": "1970-01-01T00:00:00.000000Z",
|
|
"text": "again",
|
|
},
|
|
"replyCount": 2,
|
|
"repostCount": 1,
|
|
"uri": "record(5)",
|
|
},
|
|
},
|
|
},
|
|
]
|
|
`;
|
|
|
|
exports[`feed generation getFeed resolves basic feed contents. 1`] = `
|
|
Array [
|
|
Object {
|
|
"feedContext": "item-0",
|
|
"post": Object {
|
|
"author": Object {
|
|
"avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(1)@jpeg",
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"did": "user(0)",
|
|
"displayName": "ali",
|
|
"handle": "alice.test",
|
|
"labels": Array [
|
|
Object {
|
|
"cid": "cids(2)",
|
|
"cts": "1970-01-01T00:00:00.000Z",
|
|
"src": "user(0)",
|
|
"uri": "record(1)",
|
|
"val": "self-label-a",
|
|
},
|
|
Object {
|
|
"cid": "cids(2)",
|
|
"cts": "1970-01-01T00:00:00.000Z",
|
|
"src": "user(0)",
|
|
"uri": "record(1)",
|
|
"val": "self-label-b",
|
|
},
|
|
],
|
|
"viewer": Object {
|
|
"blockedBy": false,
|
|
"muted": false,
|
|
},
|
|
},
|
|
"cid": "cids(0)",
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [
|
|
Object {
|
|
"cid": "cids(0)",
|
|
"cts": "1970-01-01T00:00:00.000Z",
|
|
"src": "user(0)",
|
|
"uri": "record(0)",
|
|
"val": "self-label",
|
|
},
|
|
],
|
|
"likeCount": 0,
|
|
"quoteCount": 0,
|
|
"record": Object {
|
|
"$type": "app.bsky.feed.post",
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Object {
|
|
"$type": "com.atproto.label.defs#selfLabels",
|
|
"values": Array [
|
|
Object {
|
|
"val": "self-label",
|
|
},
|
|
],
|
|
},
|
|
"text": "hey there",
|
|
},
|
|
"replyCount": 0,
|
|
"repostCount": 0,
|
|
"uri": "record(0)",
|
|
"viewer": Object {
|
|
"embeddingDisabled": false,
|
|
"threadMuted": false,
|
|
},
|
|
},
|
|
},
|
|
Object {
|
|
"feedContext": "item-2",
|
|
"post": Object {
|
|
"author": Object {
|
|
"did": "user(2)",
|
|
"handle": "carol.test",
|
|
"labels": Array [],
|
|
"viewer": Object {
|
|
"blockedBy": false,
|
|
"followedBy": "record(4)",
|
|
"following": "record(3)",
|
|
"muted": false,
|
|
},
|
|
},
|
|
"cid": "cids(3)",
|
|
"embed": Object {
|
|
"$type": "app.bsky.embed.recordWithMedia#view",
|
|
"media": Object {
|
|
"$type": "app.bsky.embed.images#view",
|
|
"images": Array [
|
|
Object {
|
|
"alt": "../dev-env/assets/key-landscape-small.jpg",
|
|
"fullsize": "https://bsky.public.url/img/feed_fullsize/plain/user(3)/cids(4)@jpeg",
|
|
"thumb": "https://bsky.public.url/img/feed_thumbnail/plain/user(3)/cids(4)@jpeg",
|
|
},
|
|
Object {
|
|
"alt": "../dev-env/assets/key-alt.jpg",
|
|
"fullsize": "https://bsky.public.url/img/feed_fullsize/plain/user(3)/cids(5)@jpeg",
|
|
"thumb": "https://bsky.public.url/img/feed_thumbnail/plain/user(3)/cids(5)@jpeg",
|
|
},
|
|
],
|
|
},
|
|
"record": Object {
|
|
"record": Object {
|
|
"$type": "app.bsky.embed.record#viewRecord",
|
|
"author": Object {
|
|
"avatar": "https://bsky.public.url/img/avatar/plain/user(5)/cids(1)@jpeg",
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"did": "user(4)",
|
|
"displayName": "bobby",
|
|
"handle": "bob.test",
|
|
"labels": Array [],
|
|
"viewer": Object {
|
|
"blockedBy": false,
|
|
"followedBy": "record(7)",
|
|
"following": "record(6)",
|
|
"muted": false,
|
|
},
|
|
},
|
|
"cid": "cids(6)",
|
|
"embeds": Array [],
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [],
|
|
"likeCount": 0,
|
|
"quoteCount": 1,
|
|
"replyCount": 0,
|
|
"repostCount": 0,
|
|
"uri": "record(5)",
|
|
"value": Object {
|
|
"$type": "app.bsky.feed.post",
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"langs": Array [
|
|
"en-US",
|
|
"i-klingon",
|
|
],
|
|
"text": "bob back at it again!",
|
|
},
|
|
},
|
|
},
|
|
},
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [],
|
|
"likeCount": 2,
|
|
"quoteCount": 1,
|
|
"record": Object {
|
|
"$type": "app.bsky.feed.post",
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"embed": Object {
|
|
"$type": "app.bsky.embed.recordWithMedia",
|
|
"media": Object {
|
|
"$type": "app.bsky.embed.images",
|
|
"images": Array [
|
|
Object {
|
|
"alt": "../dev-env/assets/key-landscape-small.jpg",
|
|
"image": Object {
|
|
"$type": "blob",
|
|
"mimeType": "image/jpeg",
|
|
"ref": Object {
|
|
"$link": "cids(4)",
|
|
},
|
|
"size": 4114,
|
|
},
|
|
},
|
|
Object {
|
|
"alt": "../dev-env/assets/key-alt.jpg",
|
|
"image": Object {
|
|
"$type": "blob",
|
|
"mimeType": "image/jpeg",
|
|
"ref": Object {
|
|
"$link": "cids(5)",
|
|
},
|
|
"size": 12736,
|
|
},
|
|
},
|
|
],
|
|
},
|
|
"record": Object {
|
|
"record": Object {
|
|
"cid": "cids(6)",
|
|
"uri": "record(5)",
|
|
},
|
|
},
|
|
},
|
|
"text": "hi im carol",
|
|
},
|
|
"replyCount": 0,
|
|
"repostCount": 0,
|
|
"uri": "record(2)",
|
|
"viewer": Object {
|
|
"embeddingDisabled": false,
|
|
"like": "record(8)",
|
|
"threadMuted": false,
|
|
},
|
|
},
|
|
},
|
|
Object {
|
|
"feedContext": "item-4",
|
|
"post": Object {
|
|
"author": Object {
|
|
"did": "user(2)",
|
|
"handle": "carol.test",
|
|
"labels": Array [],
|
|
"viewer": Object {
|
|
"blockedBy": false,
|
|
"followedBy": "record(4)",
|
|
"following": "record(3)",
|
|
"muted": false,
|
|
},
|
|
},
|
|
"cid": "cids(7)",
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [],
|
|
"likeCount": 0,
|
|
"quoteCount": 0,
|
|
"record": Object {
|
|
"$type": "app.bsky.feed.post",
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"reply": Object {
|
|
"parent": Object {
|
|
"cid": "cids(8)",
|
|
"uri": "record(10)",
|
|
},
|
|
"root": Object {
|
|
"cid": "cids(8)",
|
|
"uri": "record(10)",
|
|
},
|
|
},
|
|
"text": "of course",
|
|
},
|
|
"replyCount": 0,
|
|
"repostCount": 0,
|
|
"uri": "record(9)",
|
|
"viewer": Object {
|
|
"embeddingDisabled": false,
|
|
"threadMuted": false,
|
|
},
|
|
},
|
|
"reply": Object {
|
|
"parent": Object {
|
|
"$type": "app.bsky.feed.defs#postView",
|
|
"author": Object {
|
|
"avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(1)@jpeg",
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"did": "user(0)",
|
|
"displayName": "ali",
|
|
"handle": "alice.test",
|
|
"labels": Array [
|
|
Object {
|
|
"cid": "cids(2)",
|
|
"cts": "1970-01-01T00:00:00.000Z",
|
|
"src": "user(0)",
|
|
"uri": "record(1)",
|
|
"val": "self-label-a",
|
|
},
|
|
Object {
|
|
"cid": "cids(2)",
|
|
"cts": "1970-01-01T00:00:00.000Z",
|
|
"src": "user(0)",
|
|
"uri": "record(1)",
|
|
"val": "self-label-b",
|
|
},
|
|
],
|
|
"viewer": Object {
|
|
"blockedBy": false,
|
|
"muted": false,
|
|
},
|
|
},
|
|
"cid": "cids(8)",
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [],
|
|
"likeCount": 3,
|
|
"quoteCount": 0,
|
|
"record": Object {
|
|
"$type": "app.bsky.feed.post",
|
|
"createdAt": "1970-01-01T00:00:00.000000Z",
|
|
"text": "again",
|
|
},
|
|
"replyCount": 2,
|
|
"repostCount": 1,
|
|
"uri": "record(10)",
|
|
"viewer": Object {
|
|
"embeddingDisabled": false,
|
|
"threadMuted": false,
|
|
},
|
|
},
|
|
"root": Object {
|
|
"$type": "app.bsky.feed.defs#postView",
|
|
"author": Object {
|
|
"avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(1)@jpeg",
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"did": "user(0)",
|
|
"displayName": "ali",
|
|
"handle": "alice.test",
|
|
"labels": Array [
|
|
Object {
|
|
"cid": "cids(2)",
|
|
"cts": "1970-01-01T00:00:00.000Z",
|
|
"src": "user(0)",
|
|
"uri": "record(1)",
|
|
"val": "self-label-a",
|
|
},
|
|
Object {
|
|
"cid": "cids(2)",
|
|
"cts": "1970-01-01T00:00:00.000Z",
|
|
"src": "user(0)",
|
|
"uri": "record(1)",
|
|
"val": "self-label-b",
|
|
},
|
|
],
|
|
"viewer": Object {
|
|
"blockedBy": false,
|
|
"muted": false,
|
|
},
|
|
},
|
|
"cid": "cids(8)",
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [],
|
|
"likeCount": 3,
|
|
"quoteCount": 0,
|
|
"record": Object {
|
|
"$type": "app.bsky.feed.post",
|
|
"createdAt": "1970-01-01T00:00:00.000000Z",
|
|
"text": "again",
|
|
},
|
|
"replyCount": 2,
|
|
"repostCount": 1,
|
|
"uri": "record(10)",
|
|
"viewer": Object {
|
|
"embeddingDisabled": false,
|
|
"threadMuted": false,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
]
|
|
`;
|
|
|
|
exports[`feed generation getFeedGenerator describes a feed gen & returns online status 1`] = `
|
|
Object {
|
|
"isOnline": true,
|
|
"isValid": true,
|
|
"view": Object {
|
|
"cid": "cids(0)",
|
|
"creator": Object {
|
|
"avatar": "https://bsky.public.url/img/avatar/plain/user(2)/cids(1)@jpeg",
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"description": "its me!",
|
|
"did": "user(1)",
|
|
"displayName": "ali",
|
|
"handle": "alice.test",
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [
|
|
Object {
|
|
"cid": "cids(2)",
|
|
"cts": "1970-01-01T00:00:00.000Z",
|
|
"src": "user(1)",
|
|
"uri": "record(3)",
|
|
"val": "self-label-a",
|
|
},
|
|
Object {
|
|
"cid": "cids(2)",
|
|
"cts": "1970-01-01T00:00:00.000Z",
|
|
"src": "user(1)",
|
|
"uri": "record(3)",
|
|
"val": "self-label-b",
|
|
},
|
|
],
|
|
"viewer": Object {
|
|
"blockedBy": false,
|
|
"followedBy": "record(2)",
|
|
"following": "record(1)",
|
|
"muted": false,
|
|
},
|
|
},
|
|
"description": "Provides all feed candidates",
|
|
"did": "user(0)",
|
|
"displayName": "All",
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [],
|
|
"likeCount": 2,
|
|
"uri": "record(0)",
|
|
"viewer": Object {
|
|
"like": "record(4)",
|
|
},
|
|
},
|
|
}
|
|
`;
|
|
|
|
exports[`feed generation getFeedGenerators describes multiple feed gens 1`] = `
|
|
Object {
|
|
"feeds": Array [
|
|
Object {
|
|
"cid": "cids(0)",
|
|
"creator": Object {
|
|
"avatar": "https://bsky.public.url/img/avatar/plain/user(2)/cids(1)@jpeg",
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"description": "its me!",
|
|
"did": "user(1)",
|
|
"displayName": "ali",
|
|
"handle": "alice.test",
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [
|
|
Object {
|
|
"cid": "cids(2)",
|
|
"cts": "1970-01-01T00:00:00.000Z",
|
|
"src": "user(1)",
|
|
"uri": "record(3)",
|
|
"val": "self-label-a",
|
|
},
|
|
Object {
|
|
"cid": "cids(2)",
|
|
"cts": "1970-01-01T00:00:00.000Z",
|
|
"src": "user(1)",
|
|
"uri": "record(3)",
|
|
"val": "self-label-b",
|
|
},
|
|
],
|
|
"viewer": Object {
|
|
"blockedBy": false,
|
|
"followedBy": "record(2)",
|
|
"following": "record(1)",
|
|
"muted": false,
|
|
},
|
|
},
|
|
"description": "Provides even-indexed feed candidates",
|
|
"did": "user(0)",
|
|
"displayName": "Even",
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [],
|
|
"likeCount": 0,
|
|
"uri": "record(0)",
|
|
"viewer": Object {},
|
|
},
|
|
Object {
|
|
"cid": "cids(3)",
|
|
"creator": Object {
|
|
"avatar": "https://bsky.public.url/img/avatar/plain/user(2)/cids(1)@jpeg",
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"description": "its me!",
|
|
"did": "user(1)",
|
|
"displayName": "ali",
|
|
"handle": "alice.test",
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [
|
|
Object {
|
|
"cid": "cids(2)",
|
|
"cts": "1970-01-01T00:00:00.000Z",
|
|
"src": "user(1)",
|
|
"uri": "record(3)",
|
|
"val": "self-label-a",
|
|
},
|
|
Object {
|
|
"cid": "cids(2)",
|
|
"cts": "1970-01-01T00:00:00.000Z",
|
|
"src": "user(1)",
|
|
"uri": "record(3)",
|
|
"val": "self-label-b",
|
|
},
|
|
],
|
|
"viewer": Object {
|
|
"blockedBy": false,
|
|
"followedBy": "record(2)",
|
|
"following": "record(1)",
|
|
"muted": false,
|
|
},
|
|
},
|
|
"description": "Provides all feed candidates",
|
|
"did": "user(0)",
|
|
"displayName": "All",
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [],
|
|
"likeCount": 2,
|
|
"uri": "record(4)",
|
|
"viewer": Object {
|
|
"like": "record(5)",
|
|
},
|
|
},
|
|
],
|
|
}
|
|
`;
|
|
|
|
exports[`feed generation getSuggestedFeeds returns list of suggested feed generators 1`] = `
|
|
Object {
|
|
"cursor": "4",
|
|
"feeds": Array [
|
|
Object {
|
|
"cid": "cids(0)",
|
|
"creator": Object {
|
|
"avatar": "https://bsky.public.url/img/avatar/plain/user(2)/cids(1)@jpeg",
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"description": "its me!",
|
|
"did": "user(1)",
|
|
"displayName": "ali",
|
|
"handle": "alice.test",
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [
|
|
Object {
|
|
"cid": "cids(2)",
|
|
"cts": "1970-01-01T00:00:00.000Z",
|
|
"src": "user(1)",
|
|
"uri": "record(3)",
|
|
"val": "self-label-a",
|
|
},
|
|
Object {
|
|
"cid": "cids(2)",
|
|
"cts": "1970-01-01T00:00:00.000Z",
|
|
"src": "user(1)",
|
|
"uri": "record(3)",
|
|
"val": "self-label-b",
|
|
},
|
|
],
|
|
"viewer": Object {
|
|
"blockedBy": false,
|
|
"followedBy": "record(2)",
|
|
"following": "record(1)",
|
|
"muted": false,
|
|
},
|
|
},
|
|
"description": "Provides all feed candidates",
|
|
"did": "user(0)",
|
|
"displayName": "All",
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [],
|
|
"likeCount": 2,
|
|
"uri": "record(0)",
|
|
"viewer": Object {
|
|
"like": "record(4)",
|
|
},
|
|
},
|
|
Object {
|
|
"cid": "cids(3)",
|
|
"creator": Object {
|
|
"avatar": "https://bsky.public.url/img/avatar/plain/user(2)/cids(1)@jpeg",
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"description": "its me!",
|
|
"did": "user(1)",
|
|
"displayName": "ali",
|
|
"handle": "alice.test",
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [
|
|
Object {
|
|
"cid": "cids(2)",
|
|
"cts": "1970-01-01T00:00:00.000Z",
|
|
"src": "user(1)",
|
|
"uri": "record(3)",
|
|
"val": "self-label-a",
|
|
},
|
|
Object {
|
|
"cid": "cids(2)",
|
|
"cts": "1970-01-01T00:00:00.000Z",
|
|
"src": "user(1)",
|
|
"uri": "record(3)",
|
|
"val": "self-label-b",
|
|
},
|
|
],
|
|
"viewer": Object {
|
|
"blockedBy": false,
|
|
"followedBy": "record(2)",
|
|
"following": "record(1)",
|
|
"muted": false,
|
|
},
|
|
},
|
|
"description": "Provides even-indexed feed candidates",
|
|
"did": "user(0)",
|
|
"displayName": "Even",
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [],
|
|
"likeCount": 0,
|
|
"uri": "record(5)",
|
|
"viewer": Object {},
|
|
},
|
|
Object {
|
|
"cid": "cids(4)",
|
|
"creator": Object {
|
|
"avatar": "https://bsky.public.url/img/avatar/plain/user(2)/cids(1)@jpeg",
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"description": "its me!",
|
|
"did": "user(1)",
|
|
"displayName": "ali",
|
|
"handle": "alice.test",
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [
|
|
Object {
|
|
"cid": "cids(2)",
|
|
"cts": "1970-01-01T00:00:00.000Z",
|
|
"src": "user(1)",
|
|
"uri": "record(3)",
|
|
"val": "self-label-a",
|
|
},
|
|
Object {
|
|
"cid": "cids(2)",
|
|
"cts": "1970-01-01T00:00:00.000Z",
|
|
"src": "user(1)",
|
|
"uri": "record(3)",
|
|
"val": "self-label-b",
|
|
},
|
|
],
|
|
"viewer": Object {
|
|
"blockedBy": false,
|
|
"followedBy": "record(2)",
|
|
"following": "record(1)",
|
|
"muted": false,
|
|
},
|
|
},
|
|
"description": "Provides all feed candidates, blindly ignoring pagination limit",
|
|
"did": "user(0)",
|
|
"displayName": "Bad Pagination Limit",
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [],
|
|
"likeCount": 0,
|
|
"uri": "record(6)",
|
|
"viewer": Object {},
|
|
},
|
|
],
|
|
}
|
|
`;
|