diff --git a/app/index.rb b/app/index.rb index 10162c8c..e284ef35 100644 --- a/app/index.rb +++ b/app/index.rb @@ -75,7 +75,7 @@ get '/?' do end if SimpleCache.expired?(:featured_sites) - @featured_sites = Site.order(:score.desc).limit(12).all.shuffle.collect {|s| {screenshot_url: s.screenshot_url('index.html', '540x405'), uri: s.uri, title: s.title}} + @featured_sites = Site.order(:score.desc).exclude(is_nsfw: true).exclude(is_deleted: true).limit(12).all.shuffle.collect {|s| {screenshot_url: s.screenshot_url('index.html', '540x405'), uri: s.uri, title: s.title}} SimpleCache.store :featured_sites, @featured_sites, 1.hour else @featured_sites = SimpleCache.get :featured_sites