diff options
Diffstat (limited to 'internal/email/noopsender.go')
-rw-r--r-- | internal/email/noopsender.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/email/noopsender.go b/internal/email/noopsender.go index 9f587f319..9aab1ca41 100644 --- a/internal/email/noopsender.go +++ b/internal/email/noopsender.go @@ -23,7 +23,6 @@ import ( "text/template" "github.com/sirupsen/logrus" - "github.com/spf13/viper" "github.com/superseriousbusiness/gotosocial/internal/config" ) @@ -32,7 +31,7 @@ import ( // // Passing a nil function is also acceptable, in which case the send functions will just return nil. func NewNoopSender(sendCallback func(toAddress string, message string)) (Sender, error) { - templateBaseDir := viper.GetString(config.Keys.WebTemplateBaseDir) + templateBaseDir := config.GetWebTemplateBaseDir() t, err := loadTemplates(templateBaseDir) if err != nil { |