Skip to content

Commit 75a7280

Browse files
authored
Add supports of Mastodon 2.9.1 RC1 (#59)
* Add `account_id` to the FetchNotificationsParams * Update return type of removeStatus
1 parent 6f8b06c commit 75a7280

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

ā€Žsrc/client/masto.tsā€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1130,7 +1130,7 @@ export class Masto {
11301130
*/
11311131
@available({ since: '0.0.0' })
11321132
public removeStatus(id: string) {
1133-
return this.gateway.delete<void>(`/api/v1/statuses/${id}`);
1133+
return this.gateway.delete<Status>(`/api/v1/statuses/${id}`);
11341134
}
11351135

11361136
/**

ā€Žsrc/client/params.tsā€Ž

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ export interface ModifyListAccountsParams {
160160
}
161161

162162
export interface FetchNotificationsParams extends PaginationParams {
163+
/** ID of the account */
164+
account_id?: string | null;
163165
/** Array of notifications to exclude (Allowed values: "follow", "favourite", "reblog", "mention") */
164166
exclude_types?: NotificationType[] | null;
165167
}

0 commit comments

Comments
Ā (0)
⚔