diff options
author | Vika Shleina <vika@fireburn.ru> | 2021-07-19 11:14:26 +0300 |
---|---|---|
committer | Vika Shleina <vika@fireburn.ru> | 2021-07-19 11:14:26 +0300 |
commit | 1d431768d5290824b7f623042774e3e236c532a1 (patch) | |
tree | 62626bb8c9637b314148cfa44b70aa3e4019a26a /src/frontend | |
parent | 47c3b54d1d0b276fb87d1b4b71a584e0e0c7b43d (diff) | |
download | kittybox-1d431768d5290824b7f623042774e3e236c532a1.tar.zst |
Fixed feed pagination on frontend
Diffstat (limited to 'src/frontend')
-rw-r--r-- | src/frontend/mod.rs | 5 |
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() |