aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video/video.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/models/video/video.ts')
-rw-r--r--server/models/video/video.ts15
1 files changed, 9 insertions, 6 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts
index 9c24d1ba8..ab7b49f1e 100644
--- a/server/models/video/video.ts
+++ b/server/models/video/video.ts
@@ -127,14 +127,17 @@ import {
127 MUserId, 127 MUserId,
128 MVideoAccountLight, 128 MVideoAccountLight,
129 MVideoAccountLightBlacklistAllFiles, 129 MVideoAccountLightBlacklistAllFiles,
130 MVideoAP,
130 MVideoDetails, 131 MVideoDetails,
132 MVideoFormattable,
133 MVideoFormattableDetails,
131 MVideoForUser, 134 MVideoForUser,
132 MVideoFullLight, 135 MVideoFullLight,
133 MVideoIdThumbnail, 136 MVideoIdThumbnail,
134 MVideoThumbnail, 137 MVideoThumbnail,
135 MVideoWithAllFiles, MVideoWithFile, 138 MVideoWithAllFiles,
136 MVideoWithRights, 139 MVideoWithFile,
137 MVideoFormattable 140 MVideoWithRights
138} from '../../typings/models' 141} from '../../typings/models'
139import { MVideoFile, MVideoFileRedundanciesOpt } from '../../typings/models/video/video-file' 142import { MVideoFile, MVideoFileRedundanciesOpt } from '../../typings/models/video/video-file'
140import { MThumbnail } from '../../typings/models/video/thumbnail' 143import { MThumbnail } from '../../typings/models/video/thumbnail'
@@ -1879,11 +1882,11 @@ export class VideoModel extends Model<VideoModel> {
1879 return join(LAZY_STATIC_PATHS.PREVIEWS, preview.filename) 1882 return join(LAZY_STATIC_PATHS.PREVIEWS, preview.filename)
1880 } 1883 }
1881 1884
1882 toFormattedJSON <T extends MVideoFormattable> (this: T, options?: VideoFormattingJSONOptions): Video { 1885 toFormattedJSON (this: MVideoFormattable, options?: VideoFormattingJSONOptions): Video {
1883 return videoModelToFormattedJSON(this, options) 1886 return videoModelToFormattedJSON(this, options)
1884 } 1887 }
1885 1888
1886 toFormattedDetailsJSON (): VideoDetails { 1889 toFormattedDetailsJSON (this: MVideoFormattableDetails): VideoDetails {
1887 return videoModelToFormattedDetailsJSON(this) 1890 return videoModelToFormattedDetailsJSON(this)
1888 } 1891 }
1889 1892
@@ -1891,7 +1894,7 @@ export class VideoModel extends Model<VideoModel> {
1891 return videoFilesModelToFormattedJSON(this, this.VideoFiles) 1894 return videoFilesModelToFormattedJSON(this, this.VideoFiles)
1892 } 1895 }
1893 1896
1894 toActivityPubObject (): VideoTorrentObject { 1897 toActivityPubObject (this: MVideoAP): VideoTorrentObject {
1895 return videoModelToActivityPubObject(this) 1898 return videoModelToActivityPubObject(this)
1896 } 1899 }
1897 1900