mirror of
https://github.com/neocities/neocities.git
synced 2025-07-04 10:03:28 +02:00
add back tag dedupe code
This commit is contained in:
parent
4fc5698d0e
commit
4eeec12b67
2 changed files with 19 additions and 1 deletions
|
@ -904,7 +904,7 @@ class Site < Sequel::Model
|
|||
end
|
||||
|
||||
def add_tag_name(name)
|
||||
add_tag Tag[name: name] || Tag.create(name: name)
|
||||
add_tag Tag.find_or_create(name: name)
|
||||
end
|
||||
|
||||
def before_create
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue