Skip to content

Commit fc34274

Browse files
committed
fix: update type information related to relationship severance
1 parent 0977817 commit fc34274

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/mastodon/entities/v1/notification.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export type AdminReportNotification =
9191
*/
9292
export type SeveredRelationshipsNotification =
9393
BaseNotificationPlain<"severed_relationships"> & {
94-
relationshipSeveranceEvent: RelationshipSeveranceEvent;
94+
event: RelationshipSeveranceEvent;
9595
};
9696

9797
/**

src/mastodon/entities/v1/relationship-severance-event.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ export interface RelationshipSeveranceEvent {
88
type: RelationshipSeveranceEventType;
99
/** Whether the list of severed relationships is unavailable because the underlying issue has been purged. */
1010
purged: boolean;
11+
/** Number of followers that were removed as result of the event. */
12+
followersCount: number;
13+
/** Number of accounts the user stopped following as result of the event. */
14+
followingCount: number;
1115
/** Name of the target of the moderation/block event. This is either a domain name or a user handle, depending on the event type. */
1216
targetName: string;
13-
/** Number of follow relationships (in either direction) that were severed. */
14-
relationshipsCount?: number | null;
1517
/** When the event took place. */
1618
createdAt: string;
1719
}

0 commit comments

Comments
 (0)