From 8be1afa12b700b93ed92365cab05c0ef81d643aa Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 10 May 2018 12:26:47 +0200 Subject: Add ability to embed a video in Twitter The instance should be whitelisted first --- client/src/app/shared/forms/form-validators/custom-config.ts | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'client/src/app/shared') diff --git a/client/src/app/shared/forms/form-validators/custom-config.ts b/client/src/app/shared/forms/form-validators/custom-config.ts index c9cef2e09..e3d9a4c7b 100644 --- a/client/src/app/shared/forms/form-validators/custom-config.ts +++ b/client/src/app/shared/forms/form-validators/custom-config.ts @@ -14,6 +14,13 @@ export const INSTANCE_SHORT_DESCRIPTION = { } } +export const SERVICES_TWITTER_USERNAME = { + VALIDATORS: [ Validators.required ], + MESSAGES: { + 'required': 'Twitter username is required.' + } +} + export const CACHE_PREVIEWS_SIZE = { VALIDATORS: [ Validators.required, Validators.min(1), Validators.pattern('[0-9]+') ], MESSAGES: { -- cgit v1.2.3