1
0
Fork 1
mirror of https://akkoma.dev/AkkomaGang/akkoma.git synced 2024-11-19 11:29:17 +00:00

update nodeinfo version when requesting 2.1

This commit is contained in:
Luna 2019-02-01 16:03:23 -03:00
parent 1cdcee89da
commit 9cac8729af

View file

@ -168,7 +168,10 @@ def nodeinfo(conn, %{"version" => "2.1"}) do
|> Map.get(:software) |> Map.get(:software)
|> Map.put(:repository, Pleroma.Application.repository()) |> Map.put(:repository, Pleroma.Application.repository())
response = raw_response |> Map.put(:software, updated_software) response =
raw_response
|> Map.put(:software, updated_software)
|> Map.put(:version, "2.1")
conn conn
|> put_resp_header( |> put_resp_header(