mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
refs https://github.com/TryGhost/Ghost/issues/12716 - The code in serializePostModel was broken and always defaulted to 'v3'! It refered to non-existent `model.get('api_version')` there's no such field in posts model! Changed the implementation so that the API version is passed in as a parameter to the method instead - The style of providing "defaults" everywhere creates a need for future maintenance when we bump the version e.g in Ghost v5. Maybe reworking these methods to require a passed version and throwing an error instead would be more maintainable long-term? |
||
---|---|---|
.. | ||
utils | ||
actions.js | ||
authentication.js | ||
authors-public.js | ||
config.js | ||
db.js | ||
email-preview.js | ||
email.js | ||
identities.js | ||
images.js | ||
index.js | ||
integrations.js | ||
invites.js | ||
labels.js | ||
mail.js | ||
members.js | ||
memberSigninUrls.js | ||
membersStripeConnect.js | ||
notifications.js | ||
oembed.js | ||
pages-public.js | ||
pages.js | ||
posts-public.js | ||
posts.js | ||
preview.js | ||
redirects.js | ||
roles.js | ||
schedules.js | ||
session.js | ||
settings-public.js | ||
settings.js | ||
site.js | ||
slack.js | ||
slugs.js | ||
snippets.js | ||
tags-public.js | ||
tags.js | ||
themes.js | ||
users.js | ||
webhooks.js |