mirror of
https://github.com/Dangoware/confetti-box.git
synced 2025-06-22 22:53:02 -05:00
Revert discord timestamp
This commit is contained in:
parent
eec686e20b
commit
a782ce29f2
1 changed files with 1 additions and 2 deletions
|
@ -56,7 +56,6 @@ pub async fn file_info_opengraph(
|
|||
let size = to_pretty_size(file.metadata().await.ok()?.len());
|
||||
|
||||
let seconds_till_expiry = entry.expiry().signed_duration_since(Utc::now()).num_seconds();
|
||||
let expiry_unix_timestamp = entry.expiry().timestamp();
|
||||
let expiry = to_pretty_time(seconds_till_expiry as u32, BreakStyle::Space, TimeGranularity::Minutes);
|
||||
|
||||
let title = entry.name().clone() + " - " + &size + " - " + &expiry;
|
||||
|
@ -73,7 +72,7 @@ pub async fn file_info_opengraph(
|
|||
link rel="icon" type="image/svg+xml" href="/favicon.svg";
|
||||
meta property="og:title" content=(title);
|
||||
meta property="twitter:title" content=(title);
|
||||
meta property="og:description" content={"Size: " (size) ", expires in " (expiry) "\n<t:" (expiry_unix_timestamp) ":R>"};
|
||||
meta property="og:description" content={"Size: " (size) ", expires in " (expiry)};
|
||||
|
||||
body {
|
||||
script {
|
||||
|
|
Loading…
Reference in a new issue