add saved search gallery link, can only view your own saved searches, normalize saved search categories
This commit is contained in:
@@ -109,6 +109,7 @@ class SavedSearch < ActiveRecord::Base
|
||||
end
|
||||
|
||||
def normalize
|
||||
self.category = category.strip.gsub(/\s+/, "_").downcase if category
|
||||
self.tag_query = SavedSearch.normalize(tag_query)
|
||||
end
|
||||
|
||||
|
||||
@@ -460,10 +460,8 @@ class User < ActiveRecord::Base
|
||||
def max_saved_searches
|
||||
if is_platinum?
|
||||
1_000
|
||||
elsif is_gold?
|
||||
200
|
||||
else
|
||||
100
|
||||
250
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user