summaryrefslogtreecommitdiffstats
path: root/src/routes/posts.rs
diff options
context:
space:
mode:
authorColin Reeder <colin@vpzom.click>2020-07-21 20:13:24 -0600
committerColin Reeder <colin@vpzom.click>2020-07-21 20:13:56 -0600
commit9a5854edf5e08d2155d3dcd332f1530243a628c7 (patch)
tree0e0f82c9579cccb9d0f786028ec71dd5612542e2 /src/routes/posts.rs
parent207d06ae4118bf42828db2300cee74c0a42237ba (diff)
Replace timeago with custom implementation with language files
Diffstat (limited to 'src/routes/posts.rs')
-rw-r--r--src/routes/posts.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/routes/posts.rs b/src/routes/posts.rs
index 0f47720..feaf0da 100644
--- a/src/routes/posts.rs
+++ b/src/routes/posts.rs
@@ -74,7 +74,7 @@ async fn page_post(
</p>
<p>
{lang.tr("submitted", None)}
- {" "}<TimeAgo since={chrono::DateTime::parse_from_rfc3339(&post.as_ref().created)?} />
+ {" "}<TimeAgo since={chrono::DateTime::parse_from_rfc3339(&post.as_ref().created)?} lang={&lang} />
{" "}{lang.tr("by", None)}{" "}<UserLink user={post.as_ref().author.as_ref()} />
{" "}{lang.tr("to", None)}{" "}<CommunityLink community={&post.as_ref().community} />
</p>