eguneraketa

This commit is contained in:
2024-01-06 17:48:05 +01:00
parent 56f6e46c71
commit 59e1123d35
58 changed files with 31488 additions and 20920 deletions
+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>()?);