Packages › trotsky › StepActorUnfollow
StepActorUnfollow class
Represents step that unfollows the current actor (if followed).
Signature:
typescript
export declare class StepActorUnfollow<P = StepActor, C extends StepActorOutput = StepActorOutput, O = null> extends Step<P, C, O>
Extends: Step<P, C, O>
Methods
Method | Modifiers | Description |
---|---|---|
Applies the unfollow logic: 1. Retrieves the current actor's relationship with the specified context actor. 2. Checks if the current actor is indeed following the specified context actor. 3. If so, calls the API to remove the follow relationship. |