mirror of
https://github.com/neocities/neocities.git
synced 2025-08-03 00:02:00 +02:00
fixes for tags
This commit is contained in:
parent
c3da5cc262
commit
70a58176fa
4 changed files with 31 additions and 2 deletions
8
app.rb
8
app.rb
|
@ -233,7 +233,13 @@ end
|
|||
post '/tags/add' do
|
||||
require_login
|
||||
current_site.new_tags_string = params[:tags]
|
||||
current_site.save
|
||||
|
||||
if current_site.valid?
|
||||
current_site.save
|
||||
else
|
||||
flash[:errors] = current_site.errors[:tags].first
|
||||
end
|
||||
|
||||
redirect request.referer
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue