Skip to content

Commit

Permalink
server: hide meta duration when duration is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
kontrollanten committed Feb 17, 2025
1 parent a4d9c46 commit 4b77323
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/core/lib/html/shared/video-html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export class VideoHtml {
? {
url: WEBSERVER.URL + video.getEmbedStaticPath(),
createdAt: video.createdAt.toISOString(),
duration: getActivityStreamDuration(video.duration),
duration: video.duration ? getActivityStreamDuration(video.duration) : undefined,
views: video.views
}
: undefined
Expand Down

0 comments on commit 4b77323

Please sign in to comment.