summaryrefslogtreecommitdiff
path: root/internal/text/formatter.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/text/formatter.go')
-rw-r--r--internal/text/formatter.go9
1 files changed, 3 insertions, 6 deletions
diff --git a/internal/text/formatter.go b/internal/text/formatter.go
index b0988e9f9..f7c908a7d 100644
--- a/internal/text/formatter.go
+++ b/internal/text/formatter.go
@@ -21,7 +21,6 @@ package text
import (
"context"
- "github.com/superseriousbusiness/gotosocial/internal/config"
"github.com/superseriousbusiness/gotosocial/internal/db"
"github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
)
@@ -42,14 +41,12 @@ type Formatter interface {
}
type formatter struct {
- cfg *config.Config
- db db.DB
+ db db.DB
}
// NewFormatter returns a new Formatter interface for parsing statuses and other text input into nice html.
-func NewFormatter(cfg *config.Config, db db.DB) Formatter {
+func NewFormatter(db db.DB) Formatter {
return &formatter{
- cfg: cfg,
- db: db,
+ db: db,
}
}