diff --git a/megalodon/src/pleroma/api_client.ts b/megalodon/src/pleroma/api_client.ts index 6c6d8748..2669bc71 100644 --- a/megalodon/src/pleroma/api_client.ts +++ b/megalodon/src/pleroma/api_client.ts @@ -74,6 +74,8 @@ namespace PleromaAPI { return NotificationType.Update case PleromaNotificationType.Move: return NotificationType.Move + case PleromaNotificationType.Status: + return NotificationType.Status default: return new UnknownNotificationTypeError() } @@ -100,6 +102,8 @@ namespace PleromaAPI { return PleromaNotificationType.Update case NotificationType.Move: return PleromaNotificationType.Move + case NotificationType.Status: + return PleromaNotificationType.Status default: return new UnknownNotificationTypeError() } diff --git a/megalodon/src/pleroma/notification.ts b/megalodon/src/pleroma/notification.ts index 2dad51a6..7efa5330 100644 --- a/megalodon/src/pleroma/notification.ts +++ b/megalodon/src/pleroma/notification.ts @@ -10,6 +10,7 @@ namespace PleromaNotificationType { export const FollowRequest: PleromaEntity.NotificationType = 'follow_request' export const Update: PleromaEntity.NotificationType = 'update' export const Move: PleromaEntity.NotificationType = 'move' + export const Status: PleromaEntity.NotificationType = 'status' } export default PleromaNotificationType diff --git a/megalodon/test/unit/pleroma/api_client.spec.ts b/megalodon/test/unit/pleroma/api_client.spec.ts index 4a4496b3..bbbc340d 100644 --- a/megalodon/test/unit/pleroma/api_client.spec.ts +++ b/megalodon/test/unit/pleroma/api_client.spec.ts @@ -76,6 +76,10 @@ describe('api_client', () => { { src: MegalodonNotificationType.Move, dist: PleromaNotificationType.Move + }, + { + src: MegalodonNotificationType.Status, + dist: PleromaNotificationType.Status } ] cases.forEach(c => { @@ -121,6 +125,10 @@ describe('api_client', () => { { src: PleromaNotificationType.Move, dist: MegalodonNotificationType.Move + }, + { + src: PleromaNotificationType.Status, + dist: MegalodonNotificationType.Status } ] cases.forEach(c => {