From 23378a378a2ac710562713780de3c14cc573b2c4 Mon Sep 17 00:00:00 2001 From: 778a69cd <778a69cd@potsda.mn> Date: Sat, 2 Jul 2022 19:33:52 +0200 Subject: [PATCH] add Mobilizon version to instance config --- lib/mobilizon/config.ex | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/mobilizon/config.ex b/lib/mobilizon/config.ex index abafe9ece..d14563bda 100644 --- a/lib/mobilizon/config.ex +++ b/lib/mobilizon/config.ex @@ -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]