Use correct number for generating pagination link

This commit is contained in:
Magnus Hovland Hoff 2018-10-01 22:58:40 +02:00
parent 16384c9f83
commit 01ceda8015

View file

@ -130,7 +130,7 @@ impl Resource for DiffResource {
article_history_link: &format!("_changes{}", article_history_link: &format!("_changes{}",
changes_resource::QueryParameters::default() changes_resource::QueryParameters::default()
.article_id(Some(self.from.article_id)) .article_id(Some(self.from.article_id))
.pagination(Pagination::After(self.from.revision)) .pagination(Pagination::After(self.from.sequence_number))
.into_link() .into_link()
), ),
from_link: &format!("_revisions/{}/{}", self.from.article_id, self.from.revision), from_link: &format!("_revisions/{}/{}", self.from.article_id, self.from.revision),