0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-13 22:41:32 -05:00
ghost/core/server
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
..
api Return a single 422 error for invalid values 2015-09-25 10:30:49 +01:00
apps Merge pull request #5027 from felixrieseberg/iss4847 2015-03-19 10:47:01 -06:00
config Test support for various URL schemes 2015-09-27 10:31:49 +01:00
controllers Returns 404 page instead of crashing a server whenever special characters are used for tag filtering 2015-09-20 22:47:34 +02:00
data Revert to using findAll for internal tools 2015-10-10 17:07:10 +01:00
errors Return a single 422 error for invalid values 2015-09-25 10:30:49 +01:00
events Set a higher maxListeners value 2015-10-09 19:27:49 +01:00
helpers Add replacement for zero in plural helper 2015-09-22 16:00:20 +01:00
mail Mail consolidation 2015-08-20 11:36:14 +02:00
middleware Simplify theme middleware + improve tests 2015-10-11 22:26:43 +01:00
models fix for page deletion not updating sitemap-page.xml 2015-10-12 09:26:26 +02:00
permissions Refactor handlePermissions 2015-08-11 16:03:57 +02:00
routes add author edit route 2015-09-23 08:33:09 -05:00
storage Merge pull request #4820 from phated/file-storage 2015-03-20 08:55:19 +00:00
translations foundation work for server-side i18n support: 2015-07-27 18:47:10 -04:00
utils Fix handling of slugs on import 2015-09-23 17:41:44 +01:00
views Fixup broken error page styles 2015-06-08 12:14:58 +01:00
filters.js Misc grunt /dev updates 2015-05-28 20:25:14 +01:00
ghost-server.js Startup message explicitly mentions production 2015-08-11 18:01:36 +01:00
i18n.js foundation work for server-side i18n support: 2015-07-27 18:47:10 -04:00
index.js Remove first run alert 2015-08-26 15:29:26 +01:00
require-tree.js Misc grunt /dev updates 2015-05-28 20:25:14 +01:00
update-check.js Remove forum mentions 2015-09-29 13:10:04 +02:00