diff options
author | Reed Garmsen <rgarmsen2295@gmail.com> | 2015-07-29 14:06:15 -0700 |
---|---|---|
committer | Reed Garmsen <rgarmsen2295@gmail.com> | 2015-07-29 14:06:15 -0700 |
commit | f0a60181fee69247efd03b5197306fe08b927175 (patch) | |
tree | d890a81284b81f417cb8fcd4f2353441c11d70b6 /api/user.go | |
parent | 876a9f642a3f1ae187d750e4eb469b1fa4f1a42e (diff) | |
download | chat-f0a60181fee69247efd03b5197306fe08b927175.tar.gz chat-f0a60181fee69247efd03b5197306fe08b927175.tar.bz2 chat-f0a60181fee69247efd03b5197306fe08b927175.zip |
Made font type a field in the config file
Diffstat (limited to 'api/user.go')
-rw-r--r-- | api/user.go | 2 |
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()) } |