hmans / indiepants

IndiePants, aka Pants Phase 2. A clean indieweb-like implementation.
13 stars 1 forks source link

Make sure post slugs are unique #15

Closed hmans closed 9 years ago

hmans commented 9 years ago

While we're at it...:

hmans commented 9 years ago

I'm now checking for global slug uniqueness (within a user's scope). Semantically, it would have been much nicer to check for slug uniqueness within the day of the post's publication, but this would probably have given us a headache later (for example, how would we deal with a user changing their time zone, thus shifting day boundaries, possibly invalidating heaps of posts?)