Skip to content

Commit

Permalink
filter out spam from blog index. closes #5
Browse files Browse the repository at this point in the history
  • Loading branch information
btbonval committed Oct 27, 2013
1 parent e3226c9 commit 3c0e50b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/tag_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def show
def blog
@wikis = DrupalTag.find_pages(params[:id],10)
nids = DrupalTag.find_nodes_by_type(params[:id],'note',20).collect(&:nid)
@notes = DrupalNode.paginate(:conditions => ['nid in (?)', nids], :order => "nid DESC", :page => params[:page])
@notes = DrupalNode.paginate(:conditions => ['status = 1 AND nid in (?)', nids], :order => "nid DESC", :page => params[:page])
@tags = DrupalTag.find_all_by_name params[:id]
@tagnames = @tags.collect(&:name).uniq! || []
@title = @tagnames.join(',') + " Blog" if @tagnames
Expand Down

0 comments on commit 3c0e50b

Please sign in to comment.