mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
c8f2dd11ba
no issue - if you delete all content, we expect two events - `post.deleted` and `post.unpublished` - `post.unpublished` was never triggered, because the api implementation made use of `collection.invoke(`destroy`)` - what happened? - you fetch all posts (columns:id) - you destroy the post (only id column is available) - the model events are triggered - but you have no access to a default set of data - the result is that the event handler can't even tell if this is a post or a page - added a proper test to ensure which events are triggered |
||
---|---|---|
.. | ||
authentication.js | ||
clients.js | ||
configuration.js | ||
db.js | ||
index.js | ||
invites.js | ||
mail.js | ||
notifications.js | ||
posts.js | ||
redirects.js | ||
roles.js | ||
schedules.js | ||
settings.js | ||
slack.js | ||
slugs.js | ||
subscribers.js | ||
tags.js | ||
themes.js | ||
upload.js | ||
users.js | ||
utils.js | ||
webhooks.js |