Support isLive
This commit is contained in:
parent
099034dbdb
commit
ec63eb0b51
2
PeerTube
2
PeerTube
|
@ -1 +1 @@
|
|||
Subproject commit b2c76204f9d2900b9fd58e6618e343059821d601
|
||||
Subproject commit 969e59d17d584baf695cf9a7d6122283518386a7
|
|
@ -27,7 +27,6 @@ instances-index:
|
|||
- 'tube.nah.re'
|
||||
- 'peertube.parleur.net'
|
||||
- 'video.passageenseine.fr'
|
||||
- 'peertube.su'
|
||||
|
||||
api:
|
||||
blacklist:
|
||||
|
|
|
@ -363,7 +363,9 @@ function formatVideoForDB (v: IndexableVideo | IndexableVideoDetails): DBVideo |
|
|||
likes: v.likes,
|
||||
dislikes: v.dislikes,
|
||||
|
||||
isLive: v.isLive || false,
|
||||
nsfw: v.nsfw,
|
||||
|
||||
host: v.host,
|
||||
url: v.url,
|
||||
|
||||
|
@ -447,6 +449,7 @@ function formatVideoForAPI (v: DBVideoDetails, fromHost?: string): EnhancedVideo
|
|||
likes: v.likes,
|
||||
dislikes: v.dislikes,
|
||||
|
||||
isLive: v.isLive,
|
||||
nsfw: v.nsfw,
|
||||
|
||||
account: {
|
||||
|
@ -626,6 +629,9 @@ function buildVideosMapping () {
|
|||
nsfw: {
|
||||
type: 'boolean'
|
||||
},
|
||||
isLive: {
|
||||
type: 'boolean'
|
||||
},
|
||||
|
||||
host: {
|
||||
type: 'keyword'
|
||||
|
|
Loading…
Reference in New Issue