Ghost/core/server/models/base/plugins
Simon Backx da9de95b74
🐛 Fixed duplicate tags created when slugs contain spaces (#14277)
refs https://github.com/TryGhost/Team/issues/1284

When you create a new post with a tag slug that contains spaces, those spaces will get replaced by dashes. But instead of reusing an existing tag, a new tag is always created.

- New tag slugs are cleaned up before matching with existing tags in the Post model onSaving method
- Cleaned up multiple loops in onSaving of Post model
- Cleaned up syntax when cleaning up tag slug
- Added tests for slugs with spaces
- Added test for too long tag slug causing duplication
2022-03-10 13:07:00 +01:00
..
actions.js Moved Bookshelf plugins to folder 2021-06-17 12:04:38 +01:00
bulk-operations.js Added bulkEdit to bulk-operations bookshelf plugin (#13223) 2021-08-13 12:19:02 +01:00
crud.js 🐛 Fixed a 500 error for incorrect fields parameter in API 2021-07-06 11:58:37 +04:00
data-manipulation.js Fixed unparsed booleans for "boolean" type columns 2022-01-20 17:00:16 +02:00
events.js Updated signature of Bookshelf model listeners 2021-09-10 16:59:11 +01:00
filtered-collection.js Moved Bookshelf plugins to folder 2021-06-17 12:04:38 +01:00
generate-slug.js 🐛 Fixed duplicate tags created when slugs contain spaces (#14277) 2022-03-10 13:07:00 +01:00
overrides.js 🐛 Fixed URLs not being correctly transformed during insert operations (#13618) 2021-10-20 15:22:46 +01:00
raw-knex.js Added "contains" operator support to ?filter= query params (#14286) 2022-03-09 13:02:17 +00:00
sanitize.js Fixed indenting for Bookshelf sanitize plugin JSDoc 2021-06-17 13:01:15 +01:00
user-type.js Moved Bookshelf plugins to folder 2021-06-17 12:04:38 +01:00