aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared
diff options
context:
space:
mode:
Diffstat (limited to 'shared')
-rw-r--r--shared/core-utils/i18n/i18n.ts3
-rw-r--r--shared/models/plugins/server/server-hook.model.ts8
2 files changed, 8 insertions, 3 deletions
diff --git a/shared/core-utils/i18n/i18n.ts b/shared/core-utils/i18n/i18n.ts
index c43e249a6..38c1b0cc9 100644
--- a/shared/core-utils/i18n/i18n.ts
+++ b/shared/core-utils/i18n/i18n.ts
@@ -75,8 +75,7 @@ const I18N_LOCALE_ALIAS = {
75 'zh': 'zh-Hans-CN' 75 'zh': 'zh-Hans-CN'
76} 76}
77 77
78export const POSSIBLE_LOCALES = Object.keys(I18N_LOCALES) 78export const POSSIBLE_LOCALES = (Object.keys(I18N_LOCALES) as string[]).concat(Object.keys(I18N_LOCALE_ALIAS))
79 .concat(Object.keys(I18N_LOCALE_ALIAS))
80 79
81export function getDefaultLocale () { 80export function getDefaultLocale () {
82 return 'en-US' 81 return 'en-US'
diff --git a/shared/models/plugins/server/server-hook.model.ts b/shared/models/plugins/server/server-hook.model.ts
index bbd08365c..7881beaa2 100644
--- a/shared/models/plugins/server/server-hook.model.ts
+++ b/shared/models/plugins/server/server-hook.model.ts
@@ -113,7 +113,13 @@ export const serverFilterHookObject = {
113 'filter:transcoding.manual.resolutions-to-transcode.result': true, 113 'filter:transcoding.manual.resolutions-to-transcode.result': true,
114 'filter:transcoding.auto.resolutions-to-transcode.result': true, 114 'filter:transcoding.auto.resolutions-to-transcode.result': true,
115 115
116 'filter:activity-pub.remote-video-comment.create.accept.result': true 116 'filter:activity-pub.remote-video-comment.create.accept.result': true,
117
118 'filter:activity-pub.activity.context.build.result': true,
119
120 // Filter the result of video JSON LD builder
121 // You may also need to use filter:activity-pub.activity.context.build.result to also update JSON LD context
122 'filter:activity-pub.video.jsonld.build.result': true
117} 123}
118 124
119export type ServerFilterHookName = keyof typeof serverFilterHookObject 125export type ServerFilterHookName = keyof typeof serverFilterHookObject