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()),
|
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]
|
||||||
|
|
Loading…
Reference in a new issue