#1308 Fix group sorting and add new criteria (creation date, last event activity)

This commit is contained in:
Massedil
2024-10-24 19:03:55 +02:00
parent 41aa81097d
commit 6ff3525764
4 changed files with 91 additions and 21 deletions

View File

@@ -57,7 +57,8 @@ defmodule Mobilizon.GraphQL.API.Search do
current_actor_id: Map.get(args, :current_actor_id),
exclude_my_groups: Map.get(args, :exclude_my_groups, false),
exclude_stale_actors: true,
local_only: Map.get(args, :search_target, :internal) == :self
local_only: Map.get(args, :search_target, :internal) == :self,
sort_by: Map.get(args, :sort_by)
],
page,
limit