From e8bafea35bc930cb8ac5b2d521a188642a1adffe Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 17 Apr 2019 10:07:00 +0200 Subject: Create a dedicated table to track video thumbnails --- shared/models/activitypub/objects/playlist-object.ts | 2 +- shared/models/videos/thumbnail.type.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 shared/models/videos/thumbnail.type.ts (limited to 'shared/models') diff --git a/shared/models/activitypub/objects/playlist-object.ts b/shared/models/activitypub/objects/playlist-object.ts index c11a23a69..b561d8efd 100644 --- a/shared/models/activitypub/objects/playlist-object.ts +++ b/shared/models/activitypub/objects/playlist-object.ts @@ -11,7 +11,7 @@ export interface PlaylistObject { totalItems: number attributedTo: string[] - icon: ActivityIconObject + icon?: ActivityIconObject published: string updated: string diff --git a/shared/models/videos/thumbnail.type.ts b/shared/models/videos/thumbnail.type.ts new file mode 100644 index 000000000..317b4db43 --- /dev/null +++ b/shared/models/videos/thumbnail.type.ts @@ -0,0 +1,4 @@ +export enum ThumbnailType { + THUMBNAIL = 1, + PREVIEW = 2 +} -- cgit v1.2.3