Skip to content

Commit

Permalink
Fixed filter spam tags in app/controllers/stats_controller.rb (public…
Browse files Browse the repository at this point in the history
  • Loading branch information
dongskyler committed Apr 29, 2020
1 parent a2cc478 commit 16a0663
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/stats_controller.rb
@@ -1,7 +1,7 @@
class StatsController < ApplicationController
def subscriptions
@tags = {}
TagSelection.where(following: true).each do |tag|
TagSelection.joins(:node_tags).where(following: true).each do |tag|
@tags[tag.tagname] = @tags[tag.tagname] || 0
@tags[tag.tagname] += 1
end
Expand Down

0 comments on commit 16a0663

Please sign in to comment.