add Mobilizon version to instance config

This commit is contained in:
778a69cd 2022-07-02 19:33:52 +02:00
parent 45f030f227
commit a2d12990a4

View file

@ -19,6 +19,7 @@ defmodule Mobilizon.Config do
registration_email_denylist: list(String.t()), registration_email_denylist: list(String.t()),
demo: boolean(), demo: boolean(),
repository: String.t(), repository: String.t(),
version: String.t(),
email_from: String.t(), email_from: String.t(),
email_reply_to: String.t(), email_reply_to: String.t(),
federating: boolean(), federating: boolean(),
@ -102,9 +103,7 @@ defmodule Mobilizon.Config do
end end
@spec instance_version :: String.t() @spec instance_version :: String.t()
def instance_version do def instance_version, do: instance_config()[:version]
GitStatus.commit()
end
@spec instance_hostname :: String.t() @spec instance_hostname :: String.t()
def instance_hostname, do: instance_config()[:hostname] def instance_hostname, do: instance_config()[:hostname]