add Mobilizon version to instance config
This commit is contained in:
parent
0824694c56
commit
23378a378a
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue