Hotfix livestream datetime (#527)

* Temporarily adjust upcoming buffer to 15 min + 5 min cache time

* Make sure datetime is shown on regular claims
This commit is contained in:
Dan Peterson 2021-12-17 09:23:49 -06:00 committed by GitHub
parent accbde78e0
commit f0fdcb6a6e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,12 +13,12 @@ type Props = {
function FileSubtitle(props: Props) { function FileSubtitle(props: Props) {
const { uri, livestream = false, isLive = false } = props; const { uri, livestream = false, isLive = false } = props;
const showDateTime = !livestream || (livestream && !isLive);
return ( return (
<> <>
<div className="media__subtitle--between"> <div className="media__subtitle--between">
<div className="file__viewdate"> <div className="file__viewdate">
{livestream && !isLive && <DateTime uri={uri} show={DateTime.SHOW_DATE} />} {showDateTime && <DateTime uri={uri} show={DateTime.SHOW_DATE} />}
<FileViewCount uri={uri} livestream={livestream} isLive={isLive} /> <FileViewCount uri={uri} livestream={livestream} isLive={isLive} />
</div> </div>