From 536d9e482d4ebc012855372b9fcfa4f022d1618a Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Fri, 29 Sep 2023 10:39:56 +0200 Subject: [chore/bugfix] Deinterface text.Formatter, allow underscores in hashtags (#2233) --- internal/processing/account/account.go | 2 +- internal/processing/status/create.go | 2 +- internal/processing/status/status.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'internal/processing') diff --git a/internal/processing/account/account.go b/internal/processing/account/account.go index 4432fd5f3..06caffaec 100644 --- a/internal/processing/account/account.go +++ b/internal/processing/account/account.go @@ -41,7 +41,7 @@ type Processor struct { mediaManager *media.Manager oauthServer oauth.Server filter *visibility.Filter - formatter text.Formatter + formatter *text.Formatter federator federation.Federator parseMention gtsmodel.ParseMentionFunc } diff --git a/internal/processing/status/create.go b/internal/processing/status/create.go index d671ea8c4..4d4f7c574 100644 --- a/internal/processing/status/create.go +++ b/internal/processing/status/create.go @@ -277,7 +277,7 @@ func processLanguage(ctx context.Context, form *apimodel.AdvancedStatusCreateFor return nil } -func processContent(ctx context.Context, dbService db.DB, formatter text.Formatter, parseMention gtsmodel.ParseMentionFunc, form *apimodel.AdvancedStatusCreateForm, accountID string, status *gtsmodel.Status) error { +func processContent(ctx context.Context, dbService db.DB, formatter *text.Formatter, parseMention gtsmodel.ParseMentionFunc, form *apimodel.AdvancedStatusCreateForm, accountID string, status *gtsmodel.Status) error { // if there's nothing in the status at all we can just return early if form.Status == "" { status.Content = "" diff --git a/internal/processing/status/status.go b/internal/processing/status/status.go index bd8457eb8..432f945fc 100644 --- a/internal/processing/status/status.go +++ b/internal/processing/status/status.go @@ -31,7 +31,7 @@ type Processor struct { federator federation.Federator converter *typeutils.Converter filter *visibility.Filter - formatter text.Formatter + formatter *text.Formatter parseMention gtsmodel.ParseMentionFunc } -- cgit v1.2.3