From 1d431768d5290824b7f623042774e3e236c532a1 Mon Sep 17 00:00:00 2001 From: Vika Shleina Date: Mon, 19 Jul 2021 11:14:26 +0300 Subject: Fixed feed pagination on frontend --- src/frontend/mod.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/frontend/mod.rs b/src/frontend/mod.rs index c698370..165d89d 100644 --- a/src/frontend/mod.rs +++ b/src/frontend/mod.rs @@ -871,8 +871,11 @@ pub async fn render_post(mut req: Request>) -> R .join(req.url().path()) .unwrap(); + let mut entry_url = req.url().clone(); + entry_url.set_query(None); + let post = - get_post_from_database(&req.state().storage, url.as_str(), query.after, &user).await?; + get_post_from_database(&req.state().storage, entry_url.as_str(), query.after, &user).await?; let template: String = match post["type"][0] .as_str() -- cgit 1.4.1