From 32a18cbf33a7cdbbe3d4885d32e4b67e19cdc1cf Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 11 Mar 2021 16:54:52 +0100 Subject: Add new plugin/peertube version notifs --- shared/models/users/user-notification.model.ts | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'shared/models/users/user-notification.model.ts') diff --git a/shared/models/users/user-notification.model.ts b/shared/models/users/user-notification.model.ts index b04619685..8b33e3fbd 100644 --- a/shared/models/users/user-notification.model.ts +++ b/shared/models/users/user-notification.model.ts @@ -1,5 +1,6 @@ import { FollowState } from '../actors' import { AbuseState } from '../moderation' +import { PluginType } from '../plugins' export const enum UserNotificationType { NEW_VIDEO_FROM_SUBSCRIPTION = 1, @@ -26,7 +27,10 @@ export const enum UserNotificationType { ABUSE_STATE_CHANGE = 15, - ABUSE_NEW_MESSAGE = 16 + ABUSE_NEW_MESSAGE = 16, + + NEW_PLUGIN_VERSION = 17, + NEW_PEERTUBE_VERSION = 18 } export interface VideoInfo { @@ -108,6 +112,16 @@ export interface UserNotification { } } + plugin?: { + name: string + type: PluginType + latestVersion: string + } + + peertube?: { + latestVersion: string + } + createdAt: string updatedAt: string } -- cgit v1.2.3