File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -12,11 +12,11 @@ def files
12
12
end
13
13
def comments
14
14
comment_page = ( instance_options . dig ( :pagaination_param , :comment_page ) . presence || 1 ) . to_i
15
- comment_per = ( instance_options . dig ( :pagaination_param , :comment_per ) . presence || 10 ) . to_i
15
+ comment_per = ( instance_options . dig ( :pagaination_param , :comment_per ) . presence || 0 ) . to_i
16
16
object . comments . published . by_date . page ( comment_page ) . per ( comment_per )
17
17
end
18
18
def comments_pagination
19
- comment_per = ( instance_options . dig ( :pagaination_param , :comment_per ) . presence || 10 ) . to_i
19
+ comment_per = ( instance_options . dig ( :pagaination_param , :comment_per ) . presence || 0 ) . to_i
20
20
Pagination . build_json ( comments ) [ :comments_pagination ] if comment_per > 0
21
21
end
22
22
end
You can’t perform that action at this time.
0 commit comments