[group collection] default to hot posts

This commit is contained in:
Fosco Marotto 2021-01-22 00:46:51 -05:00
parent d35550e535
commit 1e5d12497c
1 changed files with 3 additions and 3 deletions

View File

@ -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',