From 329a5e8144eea78e607c8a218ae78ae8f346f2e8 Mon Sep 17 00:00:00 2001 From: Tobi Smethurst <31960611+tsmethurst@users.noreply.github.com> Date: Wed, 11 Aug 2021 16:54:54 +0200 Subject: Text duplication fix (#137) * start testing text duplication * tests * fixes + tests --- internal/processing/status/create.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'internal/processing/status/create.go') diff --git a/internal/processing/status/create.go b/internal/processing/status/create.go index 7480efd60..0e99b5f4a 100644 --- a/internal/processing/status/create.go +++ b/internal/processing/status/create.go @@ -39,39 +39,39 @@ func (p *processor) Create(account *gtsmodel.Account, application *gtsmodel.Appl } // check if replyToID is ok - if err := p.processReplyToID(form, account.ID, newStatus); err != nil { + if err := p.ProcessReplyToID(form, account.ID, newStatus); err != nil { return nil, gtserror.NewErrorInternalError(err) } // check if mediaIDs are ok - if err := p.processMediaIDs(form, account.ID, newStatus); err != nil { + if err := p.ProcessMediaIDs(form, account.ID, newStatus); err != nil { return nil, gtserror.NewErrorInternalError(err) } // check if visibility settings are ok - if err := p.processVisibility(form, account.Privacy, newStatus); err != nil { + if err := p.ProcessVisibility(form, account.Privacy, newStatus); err != nil { return nil, gtserror.NewErrorInternalError(err) } // handle language settings - if err := p.processLanguage(form, account.Language, newStatus); err != nil { + if err := p.ProcessLanguage(form, account.Language, newStatus); err != nil { return nil, gtserror.NewErrorInternalError(err) } // handle mentions - if err := p.processMentions(form, account.ID, newStatus); err != nil { + if err := p.ProcessMentions(form, account.ID, newStatus); err != nil { return nil, gtserror.NewErrorInternalError(err) } - if err := p.processTags(form, account.ID, newStatus); err != nil { + if err := p.ProcessTags(form, account.ID, newStatus); err != nil { return nil, gtserror.NewErrorInternalError(err) } - if err := p.processEmojis(form, account.ID, newStatus); err != nil { + if err := p.ProcessEmojis(form, account.ID, newStatus); err != nil { return nil, gtserror.NewErrorInternalError(err) } - if err := p.processContent(form, account.ID, newStatus); err != nil { + if err := p.ProcessContent(form, account.ID, newStatus); err != nil { return nil, gtserror.NewErrorInternalError(err) } -- cgit v1.2.3