0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-13 22:41:32 -05:00
ghost/core/server/models
Oliver Schneider 13adaec6e7 fix for page deletion not updating sitemap-page.xml
closes #5913

Sitemap deletion is based on the page.unpublished event. The previous
logic was always sending post.unpublished instead. If page or post
event is triggered is based on the ‘page’ attribute of the model. When
the destroyed handler all attributes are already cleared from the model
which makes this logic always fall back to post.

The fix is to move to the destroying event which still has all the
model values in place.
2015-10-12 09:26:26 +02:00
..
base Revert to using findAll for internal tools 2015-10-10 17:07:10 +01:00
accesstoken.js Misc cleanup: moving files & naming functions 2015-06-15 09:43:19 +01:00
app-field.js Misc cleanup: moving files & naming functions 2015-06-15 09:43:19 +01:00
app-setting.js Misc cleanup: moving files & naming functions 2015-06-15 09:43:19 +01:00
app.js Misc cleanup: moving files & naming functions 2015-06-15 09:43:19 +01:00
client-trusted-domain.js Add table columns for OAuth 2015-09-02 13:39:22 +01:00
client.js Add table columns for OAuth 2015-09-02 13:39:22 +01:00
index.js Revert to using findAll for internal tools 2015-10-10 17:07:10 +01:00
permission.js Misc cleanup: moving files & naming functions 2015-06-15 09:43:19 +01:00
post.js fix for page deletion not updating sitemap-page.xml 2015-10-12 09:26:26 +02:00
refreshtoken.js Misc cleanup: moving files & naming functions 2015-06-15 09:43:19 +01:00
role.js Refactor handlePermissions 2015-08-11 16:03:57 +02:00
settings.js Change type for private blog settings 2015-09-02 13:39:23 +01:00
tag.js Adding 'fields' param for browse requests 2015-08-28 19:08:22 +01:00
user.js Remove findAll from models that has findPage 2015-10-02 18:01:35 +08:00