add Mobilizon version to instance config

This commit is contained in:
778a69cd 2022-07-02 19:33:52 +02:00
parent 0824694c56
commit 23378a378a

View file

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