Add notification on new instance follower (server side)

This commit is contained in:
Chocobozzz 2019-04-08 17:26:01 +02:00
parent 0dc6477758
commit 883993c81e
No known key found for this signature in database
GPG key ID: 583A612D890159BE
19 changed files with 212 additions and 21 deletions

View file

@ -1,3 +1,5 @@
import { FollowState } from '../actors'
export enum UserNotificationType {
NEW_VIDEO_FROM_SUBSCRIPTION = 1,
NEW_COMMENT_ON_MY_VIDEO = 2,
@ -15,7 +17,9 @@ export enum UserNotificationType {
NEW_FOLLOW = 10,
COMMENT_MENTION = 11,
VIDEO_AUTO_BLACKLIST_FOR_MODERATORS = 12
VIDEO_AUTO_BLACKLIST_FOR_MODERATORS = 12,
NEW_INSTANCE_FOLLOWER = 13
}
export interface VideoInfo {
@ -73,6 +77,7 @@ export interface UserNotification {
actorFollow?: {
id: number
follower: ActorInfo
state: FollowState
following: {
type: 'account' | 'channel'
name: string