Constructor
Properties
replyRef?: ReplyRef
A reference to the post's parent and root post.
author: Profile
The post's author.
facets?: Facet[]
A facet represents a range within the post's text that has special meaning (e.g. mentions, links, tags).
See also: Links, mentions, and rich text | Blueskyembed?: PostEmbed
The embed attached to the post, if there is any.
threadgate?: Threadgate
The threadgate attached to the post, if there is any.
root?: Post
The root post of this post's thread.
parent?: Post
The post's parent.
children?: Post[]
The post's children.
createdAt: Date
The time the post was created.
indexedAt?: Date
The time the post was indexed by the AppView.
Methods
label(labels, comment?)
Apply labels to the post.
Parameters
labels: string[]
The labels to apply.
comment?: string
An optional comment.
Returns
Promise<ModEventView>
negateLabels(labels, comment?)
Negate labels previously applied to the post.
Parameters
labels: string[]
The labels to negate.
comment?: string
An optional comment.
Returns
Promise<ModEventView>
fetchRoot(options?)
Fetch the root post of the thread.
Parameters
options: PostFetchRootOptions = {}
Optional configuration.
fetchParent(options?)
Fetch the parent post.
Parameters
options: PostFetchParentOptions = {}
Optional configuration.
fetchChildren(options?)
Fetch the children of the post.
Parameters
options: PostFetchChildrenOptions = {}
Optional configuration.
getLikes(cursor?)
Fetch a list of users who liked this post. This method returns 100 likes at a time, alongside a cursor to fetch the next 100.
Parameters
cursor?: string
The cursor to begin fetching from.
iterateLikes(cursor?)
Iterate over the users who liked this post.
Parameters
cursor?: string
The cursor to begin fetching from.
Returns
AsyncIterableIterator<Profile, any, any>
getReposts(cursor?)
Fetch a list of users who reposted this post. This method returns 100 users at a time, alongside a cursor to fetch the next 100.
Parameters
cursor?: string
The cursor to begin fetching from.
iterateReposts(cursor?)
Iterate over the users who reposted this post.
Parameters
cursor?: string
The cursor to begin fetching from.
Returns
AsyncIterableIterator<Profile, any, any>
getQuotes(cursor?)
Fetch a list of posts that quote this post. This method returns 100 quotes at a time, alongside a cursor to fetch the next 100.
Parameters
cursor?: string
The cursor to begin fetching from.
iterateQuotes(cursor?)
Iterate over the posts that quote this post.
Parameters
cursor?: string
The cursor to begin fetching from.