diff options
Diffstat (limited to 'shared/models')
-rw-r--r-- | shared/models/plugins/server/server-hook.model.ts | 15 | ||||
-rw-r--r-- | shared/models/users/user-update-me.model.ts | 1 | ||||
-rw-r--r-- | shared/models/users/user.model.ts | 1 | ||||
-rw-r--r-- | shared/models/videos/video-include.enum.ts | 3 |
4 files changed, 18 insertions, 2 deletions
diff --git a/shared/models/plugins/server/server-hook.model.ts b/shared/models/plugins/server/server-hook.model.ts index 4c9d86079..0ec62222d 100644 --- a/shared/models/plugins/server/server-hook.model.ts +++ b/shared/models/plugins/server/server-hook.model.ts | |||
@@ -122,7 +122,17 @@ export const serverFilterHookObject = { | |||
122 | 122 | ||
123 | // Filter the result of video JSON LD builder | 123 | // Filter the result of video JSON LD builder |
124 | // You may also need to use filter:activity-pub.activity.context.build.result to also update JSON LD context | 124 | // You may also need to use filter:activity-pub.activity.context.build.result to also update JSON LD context |
125 | 'filter:activity-pub.video.json-ld.build.result': true | 125 | 'filter:activity-pub.video.json-ld.build.result': true, |
126 | |||
127 | // Filter result to allow custom XMLNS definitions in podcast RSS feeds | ||
128 | // Peertube >= 5.2 | ||
129 | 'filter:feed.podcast.rss.create-custom-xmlns.result': true, | ||
130 | |||
131 | // Filter result to allow custom tags in podcast RSS feeds | ||
132 | // Peertube >= 5.2 | ||
133 | 'filter:feed.podcast.channel.create-custom-tags.result': true, | ||
134 | // Peertube >= 5.2 | ||
135 | 'filter:feed.podcast.video.create-custom-tags.result': true | ||
126 | } | 136 | } |
127 | 137 | ||
128 | export type ServerFilterHookName = keyof typeof serverFilterHookObject | 138 | export type ServerFilterHookName = keyof typeof serverFilterHookObject |
@@ -154,6 +164,9 @@ export const serverActionHookObject = { | |||
154 | 164 | ||
155 | // Fired when a live video is created | 165 | // Fired when a live video is created |
156 | 'action:api.live-video.created': true, | 166 | 'action:api.live-video.created': true, |
167 | // Fired when a live video starts or ends | ||
168 | // Peertube >= 5.2 | ||
169 | 'action:live.video.state.updated': true, | ||
157 | 170 | ||
158 | // Fired when a thread is created | 171 | // Fired when a thread is created |
159 | 'action:api.video-thread.created': true, | 172 | 'action:api.video-thread.created': true, |
diff --git a/shared/models/users/user-update-me.model.ts b/shared/models/users/user-update-me.model.ts index e664e44b5..f3cceb5f2 100644 --- a/shared/models/users/user-update-me.model.ts +++ b/shared/models/users/user-update-me.model.ts | |||
@@ -16,6 +16,7 @@ export interface UserUpdateMe { | |||
16 | videoLanguages?: string[] | 16 | videoLanguages?: string[] |
17 | 17 | ||
18 | email?: string | 18 | email?: string |
19 | emailPublic?: boolean | ||
19 | currentPassword?: string | 20 | currentPassword?: string |
20 | password?: string | 21 | password?: string |
21 | 22 | ||
diff --git a/shared/models/users/user.model.ts b/shared/models/users/user.model.ts index 761a2edba..0761c1e32 100644 --- a/shared/models/users/user.model.ts +++ b/shared/models/users/user.model.ts | |||
@@ -13,6 +13,7 @@ export interface User { | |||
13 | pendingEmail: string | null | 13 | pendingEmail: string | null |
14 | 14 | ||
15 | emailVerified: boolean | 15 | emailVerified: boolean |
16 | emailPublic: boolean | ||
16 | nsfwPolicy: NSFWPolicyType | 17 | nsfwPolicy: NSFWPolicyType |
17 | 18 | ||
18 | adminFlags?: UserAdminFlag | 19 | adminFlags?: UserAdminFlag |
diff --git a/shared/models/videos/video-include.enum.ts b/shared/models/videos/video-include.enum.ts index 7e16b129a..32ee12e86 100644 --- a/shared/models/videos/video-include.enum.ts +++ b/shared/models/videos/video-include.enum.ts | |||
@@ -3,5 +3,6 @@ export const enum VideoInclude { | |||
3 | NOT_PUBLISHED_STATE = 1 << 0, | 3 | NOT_PUBLISHED_STATE = 1 << 0, |
4 | BLACKLISTED = 1 << 1, | 4 | BLACKLISTED = 1 << 1, |
5 | BLOCKED_OWNER = 1 << 2, | 5 | BLOCKED_OWNER = 1 << 2, |
6 | FILES = 1 << 3 | 6 | FILES = 1 << 3, |
7 | CAPTIONS = 1 << 4 | ||
7 | } | 8 | } |