mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
default sort of communities - by popularity
This commit is contained in:
parent
f26ce95864
commit
6846902480
1 changed files with 1 additions and 1 deletions
|
@ -137,7 +137,7 @@ def list_communities():
|
||||||
verification_warning()
|
verification_warning()
|
||||||
search_param = request.args.get('search', '')
|
search_param = request.args.get('search', '')
|
||||||
topic_id = int(request.args.get('topic_id', 0))
|
topic_id = int(request.args.get('topic_id', 0))
|
||||||
sort_by = text('community.' + request.args.get('sort_by') if request.args.get('sort_by') else 'community.title')
|
sort_by = text('community.' + request.args.get('sort_by') if request.args.get('sort_by') else 'community.post_reply_count desc')
|
||||||
topics = Topic.query.order_by(Topic.name).all()
|
topics = Topic.query.order_by(Topic.name).all()
|
||||||
if search_param == '':
|
if search_param == '':
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Add table
Reference in a new issue