short ids in urls should be case insensitive, so make them that way anyway
This commit is contained in:
parent
33e6eee4e0
commit
70db7a5879
|
@ -63,7 +63,7 @@ class Comment < ActiveRecord::Base
|
|||
raise "too many hash collisions"
|
||||
end
|
||||
|
||||
self.short_id = Utils.random_str(6)
|
||||
self.short_id = Utils.random_str(6).downcase
|
||||
|
||||
if !Comment.find_by_short_id(self.short_id)
|
||||
break
|
||||
|
|
|
@ -90,7 +90,7 @@ class Story < ActiveRecord::Base
|
|||
raise "too many hash collisions"
|
||||
end
|
||||
|
||||
self.short_id = Utils.random_str(6)
|
||||
self.short_id = Utils.random_str(6).downcase
|
||||
|
||||
if !Story.find_by_short_id(self.short_id)
|
||||
break
|
||||
|
|
Loading…
Reference in a new issue