about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorVika Shleina <vika@fireburn.ru>2021-07-19 11:14:26 +0300
committerVika Shleina <vika@fireburn.ru>2021-07-19 11:14:26 +0300
commit1d431768d5290824b7f623042774e3e236c532a1 (patch)
tree62626bb8c9637b314148cfa44b70aa3e4019a26a /src
parent47c3b54d1d0b276fb87d1b4b71a584e0e0c7b43d (diff)
downloadkittybox-1d431768d5290824b7f623042774e3e236c532a1.tar.zst
Fixed feed pagination on frontend
Diffstat (limited to 'src')
-rw-r--r--src/frontend/mod.rs5
1 files changed, 4 insertions, 1 deletions
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<S: Storage>(mut req: Request<ApplicationState<S>>) -> 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()