Merge branch 'version-again' into 'develop'
Add soapbox version to /api/v1/instance (again) See merge request soapbox-pub/soapbox!6
This commit is contained in:
commit
b398480e0f
3 changed files with 9 additions and 0 deletions
|
@ -47,6 +47,9 @@ def render("show.json", _) do
|
|||
},
|
||||
stats: %{mau: Pleroma.User.active_user_count()},
|
||||
vapid_public_key: Keyword.get(Pleroma.Web.Push.vapid_config(), :public_key)
|
||||
},
|
||||
soapbox: %{
|
||||
version: Soapbox.version()
|
||||
}
|
||||
}
|
||||
end
|
||||
|
|
5
lib/soapbox.ex
Normal file
5
lib/soapbox.ex
Normal file
|
@ -0,0 +1,5 @@
|
|||
defmodule Soapbox do
|
||||
@version "0.0.99"
|
||||
|
||||
def version, do: @version
|
||||
end
|
|
@ -48,6 +48,7 @@ test "get instance information", %{conn: conn} do
|
|||
assert result["pleroma"]["metadata"]["fields_limits"]
|
||||
assert result["pleroma"]["vapid_public_key"]
|
||||
assert result["pleroma"]["stats"]["mau"] == 0
|
||||
assert result["soapbox"]["version"] =~ "."
|
||||
|
||||
assert email == from_config_email
|
||||
assert thumbnail == from_config_thumbnail
|
||||
|
|
Loading…
Reference in a new issue