tangled
alpha
login
or
join now
parakeet.at
/
parakeet
62
fork
atom
Parakeet is a Rust-based Bluesky AppServer aiming to implement most of the functionality required to support the Bluesky client
appview
atproto
bluesky
rust
appserver
62
fork
atom
overview
issues
12
pulls
pipelines
feat(lexica): getPostThreadV2 lexicon
mia.omg.lol
5 months ago
b071e1f8
6002d4ed
verified
This commit was signed with the committer's
known signature
.
mia.omg.lol
SSH Key Fingerprint:
SHA256:eb+NhC0QEl+XKRuFP/97oH6LEz0TXTKPXGDIAI5y7CQ=
+34
2 changed files
expand all
collapse all
unified
split
lexica
src
app_bsky
mod.rs
unspecced.rs
+1
lexica/src/app_bsky/mod.rs
reviewed
···
7
7
pub mod graph;
8
8
pub mod labeler;
9
9
pub mod richtext;
10
10
+
pub mod unspecced;
10
11
11
12
#[derive(Clone, Default, Debug, Serialize)]
12
13
#[serde(rename_all = "camelCase")]
+33
lexica/src/app_bsky/unspecced.rs
reviewed
···
1
1
+
use crate::app_bsky::feed::{BlockedAuthor, PostView};
2
2
+
use serde::Serialize;
3
3
+
4
4
+
#[derive(Clone, Debug, Serialize)]
5
5
+
pub struct ThreadV2Item {
6
6
+
pub uri: String,
7
7
+
pub depth: i32,
8
8
+
pub value: ThreadV2ItemType,
9
9
+
}
10
10
+
11
11
+
#[derive(Clone, Debug, Serialize)]
12
12
+
#[serde(tag = "$type")]
13
13
+
pub enum ThreadV2ItemType {
14
14
+
#[serde(rename = "app.bsky.unspecced.defs#threadItemPost")]
15
15
+
Post(ThreadItemPost),
16
16
+
#[serde(rename = "app.bsky.unspecced.defs#threadItemNoUnauthenticated")]
17
17
+
NoUnauthenticated {},
18
18
+
#[serde(rename = "app.bsky.unspecced.defs#threadItemNotFound")]
19
19
+
NotFound {},
20
20
+
#[serde(rename = "app.bsky.unspecced.defs#threadItemBlocked")]
21
21
+
Blocked { author: BlockedAuthor },
22
22
+
}
23
23
+
24
24
+
#[derive(Clone, Debug, Serialize)]
25
25
+
#[serde(rename_all = "camelCase")]
26
26
+
pub struct ThreadItemPost {
27
27
+
pub post: PostView,
28
28
+
pub more_parents: bool,
29
29
+
pub more_replies: i32,
30
30
+
pub op_thread: bool,
31
31
+
pub hidden_by_threadgate: bool,
32
32
+
pub muted_by_viewer: bool,
33
33
+
}