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'
|
- 'tube.nah.re'
|
||||||
- 'peertube.parleur.net'
|
- 'peertube.parleur.net'
|
||||||
- 'video.passageenseine.fr'
|
- 'video.passageenseine.fr'
|
||||||
- 'peertube.su'
|
|
||||||
|
|
||||||
api:
|
api:
|
||||||
blacklist:
|
blacklist:
|
||||||
|
|
|
@ -363,7 +363,9 @@ function formatVideoForDB (v: IndexableVideo | IndexableVideoDetails): DBVideo |
|
||||||
likes: v.likes,
|
likes: v.likes,
|
||||||
dislikes: v.dislikes,
|
dislikes: v.dislikes,
|
||||||
|
|
||||||
|
isLive: v.isLive || false,
|
||||||
nsfw: v.nsfw,
|
nsfw: v.nsfw,
|
||||||
|
|
||||||
host: v.host,
|
host: v.host,
|
||||||
url: v.url,
|
url: v.url,
|
||||||
|
|
||||||
|
@ -447,6 +449,7 @@ function formatVideoForAPI (v: DBVideoDetails, fromHost?: string): EnhancedVideo
|
||||||
likes: v.likes,
|
likes: v.likes,
|
||||||
dislikes: v.dislikes,
|
dislikes: v.dislikes,
|
||||||
|
|
||||||
|
isLive: v.isLive,
|
||||||
nsfw: v.nsfw,
|
nsfw: v.nsfw,
|
||||||
|
|
||||||
account: {
|
account: {
|
||||||
|
@ -626,6 +629,9 @@ function buildVideosMapping () {
|
||||||
nsfw: {
|
nsfw: {
|
||||||
type: 'boolean'
|
type: 'boolean'
|
||||||
},
|
},
|
||||||
|
isLive: {
|
||||||
|
type: 'boolean'
|
||||||
|
},
|
||||||
|
|
||||||
host: {
|
host: {
|
||||||
type: 'keyword'
|
type: 'keyword'
|
||||||
|
|
Loading…
Reference in New Issue