mirror of
https://github.com/neocities/neocities.git
synced 2025-08-03 08:11:56 +02:00
fixes for tags
This commit is contained in:
parent
c3da5cc262
commit
70a58176fa
4 changed files with 31 additions and 2 deletions
|
@ -386,7 +386,6 @@ class Site < Sequel::Model
|
|||
|
||||
if @new_tags_string
|
||||
new_tags = @new_tags_string.split ','
|
||||
new_tags.uniq!
|
||||
new_tags.compact!
|
||||
@new_filtered_tags = []
|
||||
|
||||
|
@ -416,7 +415,10 @@ class Site < Sequel::Model
|
|||
break
|
||||
end
|
||||
|
||||
next if tags.collect {|t| t.name}.include? tag
|
||||
|
||||
@new_filtered_tags << tag
|
||||
@new_filtered_tags.uniq!
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue