diff --git a/app/models/artist.rb b/app/models/artist.rb index ae802eca9..e81ada8d6 100644 --- a/app/models/artist.rb +++ b/app/models/artist.rb @@ -379,6 +379,10 @@ class Artist < ActiveRecord::Base q = q.where("creator_id = ?", params[:creator_id].to_i) end + if params[:empty_only] == "true" + q = q.joins(:tag).where("tags.post_count = 0") + end + q end end