Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Post response move pagination -> meta #2617

Merged
merged 1 commit into from
Apr 20, 2014
Merged

Conversation

sebgie
Copy link
Contributor

@sebgie sebgie commented Apr 19, 2014

closes #2604

  • moved ‚pagination‘ to ‚meta‘ property
  • added response test for pagination property
  • changed ‚next‘ and ‚prev‘ to be set to null and exist on every
    response
  • removed unnecessary call to API for RSS author

closes TryGhost#2604
- moved ‚pagination‘ to ‚meta‘ property
- added response test for pagination property
- changed ‚next‘ and ‚prev‘ to be set to null and exist on every
response
- removed unnecessary call to API for RSS author
@hswolff
Copy link
Contributor

hswolff commented Apr 20, 2014

LGTM!

FYI: Read it over, didn't check it out and try it locally.

@@ -33,8 +33,8 @@ function getPostPage(options) {
}).then(function (page) {

// A bit of a hack for situations with no content.
if (page.pages === 0) {
page.pages = 1;
if (page.meta.pagination.pages === 0) {

This comment was marked as abuse.

This comment was marked as abuse.

ErisDS added a commit that referenced this pull request Apr 20, 2014
Post response move pagination -> meta
@ErisDS ErisDS merged commit 0ac9c50 into TryGhost:master Apr 20, 2014
@sebgie sebgie deleted the issue#2604 branch May 6, 2014 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Post API: pagination -> meta
3 participants