summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorReed Garmsen <rgarmsen2295@gmail.com>2015-07-29 14:06:15 -0700
committerReed Garmsen <rgarmsen2295@gmail.com>2015-07-29 14:06:15 -0700
commitf0a60181fee69247efd03b5197306fe08b927175 (patch)
treed890a81284b81f417cb8fcd4f2353441c11d70b6 /api
parent876a9f642a3f1ae187d750e4eb469b1fa4f1a42e (diff)
downloadchat-f0a60181fee69247efd03b5197306fe08b927175.tar.gz
chat-f0a60181fee69247efd03b5197306fe08b927175.tar.bz2
chat-f0a60181fee69247efd03b5197306fe08b927175.zip
Made font type a field in the config file
Diffstat (limited to 'api')
-rw-r--r--api/user.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/user.go b/api/user.go
index 8832ad33f..5d6e649cb 100644
--- a/api/user.go
+++ b/api/user.go
@@ -626,7 +626,7 @@ func createProfileImage(username string, userId string) ([]byte, *model.AppError
initial := string(strings.ToUpper(username)[0])
- fontBytes, err := ioutil.ReadFile(utils.FindDir("web/static/fonts") + "luximbi.ttf")
+ fontBytes, err := ioutil.ReadFile(utils.FindDir("web/static/fonts") + utils.Cfg.ImageSettings.InitialFont)
if err != nil {
return nil, model.NewAppError("createProfileImage", "Could not create default profile image font", err.Error())
}