diff options
Diffstat (limited to 'shared')
-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 | ||||
-rw-r--r-- | shared/server-commands/feeds/feeds-command.ts | 23 |
5 files changed, 41 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 | } |
diff --git a/shared/server-commands/feeds/feeds-command.ts b/shared/server-commands/feeds/feeds-command.ts index 939b18dee..26763b43e 100644 --- a/shared/server-commands/feeds/feeds-command.ts +++ b/shared/server-commands/feeds/feeds-command.ts | |||
@@ -30,6 +30,29 @@ export class FeedCommand extends AbstractCommand { | |||
30 | }) | 30 | }) |
31 | } | 31 | } |
32 | 32 | ||
33 | getPodcastXML (options: OverrideCommandOptions & { | ||
34 | ignoreCache: boolean | ||
35 | channelId: number | ||
36 | }) { | ||
37 | const { ignoreCache, channelId } = options | ||
38 | const path = `/feeds/podcast/videos.xml` | ||
39 | |||
40 | const query: { [id: string]: string } = {} | ||
41 | |||
42 | if (ignoreCache) query.v = buildUUID() | ||
43 | if (channelId) query.videoChannelId = channelId + '' | ||
44 | |||
45 | return this.getRequestText({ | ||
46 | ...options, | ||
47 | |||
48 | path, | ||
49 | query, | ||
50 | accept: 'application/xml', | ||
51 | implicitToken: false, | ||
52 | defaultExpectedStatus: HttpStatusCode.OK_200 | ||
53 | }) | ||
54 | } | ||
55 | |||
33 | getJSON (options: OverrideCommandOptions & { | 56 | getJSON (options: OverrideCommandOptions & { |
34 | feed: FeedType | 57 | feed: FeedType |
35 | ignoreCache: boolean | 58 | ignoreCache: boolean |