fixed another stupid bug

This commit is contained in:
2025-03-20 21:13:30 +01:00
parent 8353ee6e49
commit a6d40b9527
+2 -2
View File
@@ -569,8 +569,8 @@ async fn add_posts(http: &Http, c_id: ChannelId, r_data: &Map<String, Value>, 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;