diff options
author | Chocobozzz <me@florianbigard.com> | 2019-07-23 12:04:15 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2019-07-24 10:58:16 +0200 |
commit | 5b77537ce54832f47931ba47dc513be2a9197f92 (patch) | |
tree | 4f968168f1346faa82ac6c9663778e1cca65b02a /server/models/video | |
parent | d8e9a42c4b048b2669ab6a61704682ce23fbcf99 (diff) | |
download | PeerTube-5b77537ce54832f47931ba47dc513be2a9197f92.tar.gz PeerTube-5b77537ce54832f47931ba47dc513be2a9197f92.tar.zst PeerTube-5b77537ce54832f47931ba47dc513be2a9197f92.zip |
Correctly notify on auto blacklist
Diffstat (limited to 'server/models/video')
-rw-r--r-- | server/models/video/video.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts index 443aec9c2..c7f2658ed 100644 --- a/server/models/video/video.ts +++ b/server/models/video/video.ts | |||
@@ -1715,6 +1715,10 @@ export class VideoModel extends Model<VideoModel> { | |||
1715 | return VIDEO_STATES[ id ] || 'Unknown' | 1715 | return VIDEO_STATES[ id ] || 'Unknown' |
1716 | } | 1716 | } |
1717 | 1717 | ||
1718 | isBlacklisted () { | ||
1719 | return !!this.VideoBlacklist | ||
1720 | } | ||
1721 | |||
1718 | getOriginalFile () { | 1722 | getOriginalFile () { |
1719 | if (Array.isArray(this.VideoFiles) === false) return undefined | 1723 | if (Array.isArray(this.VideoFiles) === false) return undefined |
1720 | 1724 | ||