From f0a60181fee69247efd03b5197306fe08b927175 Mon Sep 17 00:00:00 2001 From: Reed Garmsen Date: Wed, 29 Jul 2015 14:06:15 -0700 Subject: Made font type a field in the config file --- api/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'api') 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()) } -- cgit v1.2.3-1-g7c22