summaryrefslogtreecommitdiff
path: root/internal/processing
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2023-09-29 10:39:56 +0200
committerLibravatar GitHub <noreply@github.com>2023-09-29 10:39:56 +0200
commit536d9e482d4ebc012855372b9fcfa4f022d1618a (patch)
tree36079fb403b9a9bb7d3a64ace582c6870bcce77b /internal/processing
parent[bugfix] Move follow.show_reblogs check further up to avoid showing unwanted ... (diff)
downloadgotosocial-536d9e482d4ebc012855372b9fcfa4f022d1618a.tar.xz
[chore/bugfix] Deinterface text.Formatter, allow underscores in hashtags (#2233)
Diffstat (limited to 'internal/processing')
-rw-r--r--internal/processing/account/account.go2
-rw-r--r--internal/processing/status/create.go2
-rw-r--r--internal/processing/status/status.go2
3 files changed, 3 insertions, 3 deletions
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
}