Skip to content

Commit

Permalink
Update blog post limit (#3818)
Browse files Browse the repository at this point in the history
* Update blog post limit

Increased the limit on blog plots, set it to number of notes with tag 'blog'.

* pasisng nil
  • Loading branch information
shubhangi-chauhan authored and jywarren committed Mar 22, 2019
1 parent d805843 commit 66ec521
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 @@ -243,7 +243,7 @@ def widget
end

def blog
nids = Tag.find_nodes_by_type(params[:id], 'note', 20).collect(&:nid)
nids = Tag.find_nodes_by_type(params[:id], 'note', nil).collect(&:nid)
@notes = Node.paginate(page: params[:page], per_page: 6)
.where('status = 1 AND nid in (?)', nids)
.order('nid DESC')
Expand Down

0 comments on commit 66ec521

Please sign in to comment.