tag search for activities, more tags in browse cloud, link between activity and browse tags

This commit is contained in:
Kyle Drake 2024-09-04 12:19:48 -05:00
parent 137f8af60b
commit 581756e110
8 changed files with 86 additions and 35 deletions

8
app.rb
View file

@ -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