mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 02:39:33 +02:00
server: hide meta duration when duration is 0
This commit is contained in:
parent
c88cb21663
commit
ad746cd945
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ export class VideoHtml {
|
||||||
? {
|
? {
|
||||||
url: WEBSERVER.URL + video.getEmbedStaticPath(),
|
url: WEBSERVER.URL + video.getEmbedStaticPath(),
|
||||||
createdAt: video.createdAt.toISOString(),
|
createdAt: video.createdAt.toISOString(),
|
||||||
duration: getActivityStreamDuration(video.duration),
|
duration: video.duration ? getActivityStreamDuration(video.duration) : undefined,
|
||||||
views: video.views
|
views: video.views
|
||||||
}
|
}
|
||||||
: undefined
|
: undefined
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue