run mix format
This commit is contained in:
parent
4033ed6714
commit
6e8de2faae
@ -404,18 +404,22 @@ def search(query, resolve) do
|
|||||||
from(
|
from(
|
||||||
u in User,
|
u in User,
|
||||||
select_merge: %{
|
select_merge: %{
|
||||||
search_distance: fragment(
|
search_distance:
|
||||||
"? <-> (? || ?)",
|
fragment(
|
||||||
^query,
|
"? <-> (? || ?)",
|
||||||
u.nickname,
|
^query,
|
||||||
u.name
|
u.nickname,
|
||||||
)}
|
u.name
|
||||||
|
)
|
||||||
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
q = from(s in subquery(inner),
|
q =
|
||||||
order_by: s.search_distance,
|
from(
|
||||||
limit: 20
|
s in subquery(inner),
|
||||||
)
|
order_by: s.search_distance,
|
||||||
|
limit: 20
|
||||||
|
)
|
||||||
|
|
||||||
Repo.all(q)
|
Repo.all(q)
|
||||||
end
|
end
|
||||||
|
@ -628,7 +628,11 @@ def get("http://mastodon.example.org/users/admin", [Accept: "application/activit
|
|||||||
}}
|
}}
|
||||||
end
|
end
|
||||||
|
|
||||||
def get("https://hubzilla.example.org/channel/kaniini", [Accept: "application/activity+json"], _) do
|
def get(
|
||||||
|
"https://hubzilla.example.org/channel/kaniini",
|
||||||
|
[Accept: "application/activity+json"],
|
||||||
|
_
|
||||||
|
) do
|
||||||
{:ok,
|
{:ok,
|
||||||
%Response{
|
%Response{
|
||||||
status_code: 200,
|
status_code: 200,
|
||||||
|
Loading…
Reference in New Issue
Block a user