Fix out of range timestamps

This commit is contained in:
Nexus 2024-02-22 18:34:06 +00:00
parent 490b5e0bd4
commit 3ab95e5d65
Signed by: nex
GPG key ID: 0FA334385D0B689F

View file

@ -204,6 +204,8 @@ def preview_url(
description="Access token to use for the request." description="Access token to use for the request."
), ),
): ):
if ts:
ts = round(ts / 1000)
if access_token_qs is not None: if access_token_qs is not None:
access_token = access_token_qs access_token = access_token_qs
elif access_token_header and access_token_header.startswith("Bearer "): elif access_token_header and access_token_header.startswith("Bearer "):