Filter spam tags from /stats/subscriptions #7831
Labels
fto-candidate
issues which are meant to be solved by first timers but aren't well-formatted yet
help wanted
requires help by anyone willing to contribute
Ruby
ws
used by staff for internal tracking
Milestone
@ebarry reports:
We can edit the stats controller so that only tags that have at least one published node attached are displayed.
More in a moment (github outage!)
Here is the controller where we collect the tags:
plots2/app/controllers/stats_controller.rb
Lines 2 to 9 in 4f68d27
I think we can just add
.joins(:node)
? If so this could be a FTO...!plots2/app/models/tag.rb
Line 398 in 4f68d27
It may need to be
.joins(:tag, :node)
? This can be tested on the rails console.The text was updated successfully, but these errors were encountered: