[group collection] default to hot posts
This commit is contained in:
parent
d35550e535
commit
1e5d12497c
|
@ -32,7 +32,7 @@ class Api::V1::Timelines::GroupCollectionController < Api::BaseController
|
||||||
private
|
private
|
||||||
|
|
||||||
def set_sort_type
|
def set_sort_type
|
||||||
@sort_type = 'newest'
|
@sort_type = 'hot'
|
||||||
@sort_type = params[:sort_by] if [
|
@sort_type = params[:sort_by] if [
|
||||||
'hot',
|
'hot',
|
||||||
'newest',
|
'newest',
|
||||||
|
|
Loading…
Reference in New Issue