From a6d40b952783d5314bef74317fc735fc32317432 Mon Sep 17 00:00:00 2001 From: Byte Dice Date: Thu, 20 Mar 2025 21:13:30 +0100 Subject: [PATCH] fixed another stupid bug --- src/bk_week_cmds.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bk_week_cmds.rs b/src/bk_week_cmds.rs index 4528fcf..06c21d5 100644 --- a/src/bk_week_cmds.rs +++ b/src/bk_week_cmds.rs @@ -569,8 +569,8 @@ async fn add_posts(http: &Http, c_id: ChannelId, r_data: &Map, ms .any(|key| msgs_json[key].as_object().unwrap().contains_key(url)) { continue; } - let post_date = r_data[url]["date_unix"].as_u64().unwrap(); - if now - post_date > max_age { continue; } + let post_date = r_data[url]["post_data"]["date_unix"].as_u64().unwrap(); + if now - post_date > max_age { continue; } if r_data[url].get("removed").is_some() { http_send_embed(http, c_id, embed_post_removed(&r_data[url], url, false)).await;