1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 19:42:24 +02:00

Add new plugin/peertube version notifs

This commit is contained in:
Chocobozzz 2021-03-11 16:54:52 +01:00
parent 3fbc697433
commit 32a18cbf33
No known key found for this signature in database
GPG key ID: 583A612D890159BE
44 changed files with 808 additions and 37 deletions

View file

@ -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
}