- static listFollowersForApi (actorId: number, start: number, count: number, sort: string, search?: string) {
+ static listFollowersForApi (options: {
+ actorId: number,
+ start: number,
+ count: number,
+ sort: string,
+ state?: FollowState,
+ search?: string
+ }) {
+ const { actorId, start, count, sort, search, state } = options
+
+ const followWhere = state ? { state } : {}
+