Add notification on new instance follower (server side)
This commit is contained in:
parent
0dc6477758
commit
883993c81e
19 changed files with 212 additions and 21 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue