0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-04 02:01:58 -05:00
ghost/test/regression/api/admin
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
..
__snapshots__ Ignore casper install on setup (#14218) 2022-03-02 18:22:20 +01:00
authentication.test.js Fixed new sites using "Default Product" Tier name 2022-03-10 11:35:03 +00:00
db.test.js
identities.test.js
images.test.js
labels.test.js
members-importer.test.js Updated all members tests to use mockManager 2022-02-10 12:21:05 +00:00
members_signin_url.test.js Updated all members tests to use mockManager 2022-02-10 12:21:05 +00:00
notifications.test.js
pages.test.js
posts.test.js 🐛 Fixed duplicate tags created when slugs contain spaces (#14277) 2022-03-10 13:07:00 +01:00
redirects.test.js
schedules.test.js
settings.test.js
slack.test.js
users.test.js
utils.js
webhooks.test.js