mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
5657019e47
refs https://ghost.slack.com/archives/C02G9E68C/p1651939076681719 Cause: - When a scheduled post was published via the post scheduler, no `newsletter_id` option is passed when editing the post. - When editing a post via the posts service, without the `newsletter_id` option, the `newsletter_id` option is automatically set to the default newsletter's id. - Inside the post model, this new `newsletter_id` was not saved, because it was already set, and changing it is prevented. - The `mega` service wasn't using the (unchanged) post's newsletter_id, but used the option instead, which contained the default newsletter's id. Fix: - Always using the newsletter_id from the post and requiring the newsletter associated with a post to exist. - This behaviour can be/is tested by publishing a scheduled post without any option. Also cleaned up some `Object.assign` usages. |
||
---|---|---|
.. | ||
adapter-manager | ||
api-version-compatibility | ||
auth | ||
bulk-email | ||
email-analytics | ||
integrations | ||
invitations | ||
invites | ||
jobs | ||
mega | ||
members | ||
newsletters | ||
notifications | ||
offers | ||
permissions | ||
posts | ||
public-config | ||
redirects | ||
route-settings | ||
settings | ||
stats | ||
stripe | ||
themes | ||
url | ||
webhooks | ||
custom-theme-settings.js | ||
limits.js | ||
nft-oembed.js | ||
oembed.js | ||
slack.js | ||
twitter-embed.js | ||
users.js | ||
xmlrpc.js |