Skip to content

Commit

Permalink
Fix issue with grouped notifications UI due to recent API change (mas…
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire authored Jul 31, 2024
1 parent 2c1e757 commit a50c8e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/javascript/mastodon/api_types/notifications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export interface BaseNotificationGroupJSON {

interface NotificationGroupWithStatusJSON extends BaseNotificationGroupJSON {
type: NotificationWithStatusType;
status: ApiStatusJSON;
status_id: string;
}

interface NotificationWithStatusJSON extends BaseNotificationJSON {
Expand Down
4 changes: 2 additions & 2 deletions app/javascript/mastodon/models/notification_group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ export function createNotificationGroupFromJSON(
case 'mention':
case 'poll':
case 'update': {
const { status, ...groupWithoutStatus } = group;
const { status_id: statusId, ...groupWithoutStatus } = group;
return {
statusId: status.id,
statusId,
sampleAccountIds,
...groupWithoutStatus,
};
Expand Down

0 comments on commit a50c8e9

Please sign in to comment.