0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00
ghost/core/server
kirrg001 c8f2dd11ba Fixed post.unpublished when deleting all content
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
2018-04-06 15:49:25 +02:00
..
adapters Moved utils constants to lib/constants 2017-12-14 14:13:40 +01:00
api Fixed post.unpublished when deleting all content 2018-04-06 15:49:25 +02:00
apps Redirected /amp links to original post when AMP is disabled (#9496) 2018-03-19 16:11:48 +07:00
config Multiple authors (#9426) 2018-03-27 15:16:15 +01:00
controllers Multiple authors (#9426) 2018-03-27 15:16:15 +01:00
data Fixed migration script 1.22 for invalid authors 2018-04-02 12:27:06 +02:00
helpers Multiple authors (#9426) 2018-03-27 15:16:15 +01:00
lib Fix Node.js 4.x compatibility (#9503) 2018-03-15 09:50:25 +00:00
models Fixed transactions for Tag.destroy 2018-04-06 15:49:25 +02:00
public
services Multiple authors (#9426) 2018-03-27 15:16:15 +01:00
translations Multiple authors (#9426) 2018-03-27 15:16:15 +01:00
views Fixed error trying to render 404 for missing asset 2017-12-22 20:08:59 +00:00
web 🐛Fixed asset redirects (#9455) 2018-02-14 17:21:31 +01:00
analytics-events.js
filters.js
ghost-server.js
index.js Theme translations and blog localisation (#8437) 2018-01-09 14:50:57 +01:00
overrides.js
update-check.js Update Notification improvements (#9123) 2018-01-09 15:20:00 +01:00