mirror of
https://github.com/codl/forget
synced 2025-01-03 18:59:23 +01:00
front page mastodon buttons: sort mastodon.social first
This commit is contained in:
parent
3d8c809e64
commit
81f3d5dff5
@ -37,7 +37,8 @@ def about():
|
||||
instances = (
|
||||
MastodonInstance.query
|
||||
.filter(MastodonInstance.popularity > 5)
|
||||
.order_by(db.desc(MastodonInstance.popularity),
|
||||
.order_by(db.desc(MastodonInstance.instance == 'mastodon.social'),
|
||||
db.desc(MastodonInstance.popularity),
|
||||
MastodonInstance.instance)
|
||||
.limit(5).all())
|
||||
return render_template(
|
||||
|
Loading…
Reference in New Issue
Block a user