mirror of
https://github.com/neocities/neocities.git
synced 2025-08-06 01:24:56 +02:00
patch a few missing tests, deprecate server model, fix a few bugs
This commit is contained in:
parent
86990f3535
commit
50c1f67bdf
14 changed files with 90 additions and 49 deletions
|
@ -9,7 +9,7 @@ class Tag < Sequel::Model
|
|||
end
|
||||
|
||||
def self.create_unless_exists(name)
|
||||
dataset.filter(name: name).first || create(name: name)
|
||||
dataset.filter(name: name.downcase).first || create(name: name)
|
||||
end
|
||||
|
||||
def self.suggestions(name, limit=3)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue