eguneraketa

This commit is contained in:
2024-01-06 17:48:05 +01:00
parent 56f6e46c71
commit 59e1123d35
58 changed files with 31490 additions and 20922 deletions
+2 -2
View File
@@ -16,7 +16,7 @@ openssl = "0.10.40"
rocket = "0.4.11"
rocket_i18n = "0.4.1"
reqwest = "0.11.11"
scheduled-thread-pool = "0.2.6"
scheduled-thread-pool = "0.2.7"
serde = "1.0.137"
rust-s3 = { version = "0.33.0", optional = true, features = ["blocking"] }
serde_derive = "1.0"
@@ -41,7 +41,7 @@ heck = "0.4.1"
[dependencies.chrono]
features = ["serde"]
version = "0.4"
version = "0.4.31"
[dependencies.diesel]
features = ["r2d2", "chrono"]
+1 -1
View File
@@ -136,7 +136,7 @@ impl Comment {
|id| Comment::get(conn, id).map(|comment| comment.ap_url.unwrap_or_default()),
)?);
note.set_published(
OffsetDateTime::from_unix_timestamp_nanos(self.creation_date.timestamp_nanos().into())
OffsetDateTime::from_unix_timestamp_nanos(self.creation_date.timestamp_nanos_opt().unwrap().into())
.expect("OffsetDateTime"),
);
note.set_attributed_to(author.into_id().parse::<IriString>()?);
+1 -1
View File
@@ -373,7 +373,7 @@ impl Post {
}))?;
article.set_source(source);
article.set_published(
OffsetDateTime::from_unix_timestamp_nanos(self.creation_date.timestamp_nanos().into())
OffsetDateTime::from_unix_timestamp_nanos(self.creation_date.timestamp_nanos_opt().unwrap().into())
.expect("OffsetDateTime"),
);
article.set_summary(&*self.subtitle);