Skip to content

Packages  ›  trotsky  ›  PostMixins

PostMixins class

A mixin class providing reusable post-related methods to extend step functionality. These methods append specific post-related steps to the current chain.

Signature:

typescript
export declare abstract class PostMixins<P, C, O> extends Step<P, C, O>

Extends: Step<P, C, O>

Methods

Method

Modifiers

Description

author()

Appends a step to retrieve the author of the current post.

delete()

Appends a step to delete the current post.

like()

Appends a step to like the current post.

likers()

Appends a step to retrieve the actors who liked the current post.

quotes()

Appends a step to retrieve the quote posts of the current post.

reply(record)

Appends a step to reply to the current post.

repost()

Appends a step to repost the current post.

reposters()

Appends a step to retrieve the actors who reposted the current post.

thread(options)

Appends a step to retrieve the full thread of the current post.

threadMute()

Appends a step to mute the current post's thread.

threadUnmute()

Appends a step to unmute the current post's thread.

unlike()

Appends a step to unlike the current post.

unrepost()

Appends a step to unrepost the current post.