Add federation API
Add signing keys fed API request
This commit is contained in:
parent
e0df546c6f
commit
1e53776a8d
7 changed files with 41 additions and 6 deletions
lib/matrix_server
|
@ -102,7 +102,7 @@ defmodule MatrixServer.Account do
|
|||
end
|
||||
|
||||
defp try_get_localpart("@" <> rest = user_id) do
|
||||
case String.split(rest, ":") do
|
||||
case String.split(rest, ":", parts: 2) do
|
||||
[localpart, _] -> localpart
|
||||
_ -> user_id
|
||||
end
|
||||
|
|
|
@ -13,7 +13,8 @@ defmodule MatrixServer.Application do
|
|||
MatrixServerWeb.Endpoint,
|
||||
{Registry, keys: :unique, name: MatrixServer.RoomServer.Registry},
|
||||
{DynamicSupervisor, name: MatrixServer.RoomServer.Supervisor, strategy: :one_for_one},
|
||||
MatrixServer.SigningServer
|
||||
MatrixServer.SigningServer,
|
||||
{Finch, name: MatrixServerWeb.HTTPClient}
|
||||
]
|
||||
|
||||
Supervisor.start_link(children, name: MatrixServer.Supervisor, strategy: :one_for_one)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue