mirror of
https://github.com/neocities/neocities.git
synced 2025-08-05 17:18:02 +02:00
tag search for activities, more tags in browse cloud, link between activity and browse tags
This commit is contained in:
parent
137f8af60b
commit
581756e110
8 changed files with 86 additions and 35 deletions
8
app.rb
8
app.rb
|
@ -92,6 +92,14 @@ before do
|
|||
params[:page] = '1'
|
||||
end
|
||||
end
|
||||
|
||||
if params[:tag]
|
||||
begin
|
||||
params.delete 'tag' if params[:tag].nil? || !params[:tag].is_a?(String) || params[:tag].strip.empty? || params[:tag].match?(Tag::INVALID_TAG_REGEX)
|
||||
rescue Encoding::CompatibilityError
|
||||
params.delete 'tag'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
after do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue