summaryrefslogtreecommitdiff
path: root/internal/processing/media/create.go
diff options
context:
space:
mode:
authorLibravatar Tobi Smethurst <31960611+tsmethurst@users.noreply.github.com>2021-07-26 20:25:54 +0200
committerLibravatar GitHub <noreply@github.com>2021-07-26 20:25:54 +0200
commitad0e26dc04008feec8de0603c88fbd63f87c18ec (patch)
treefb8402a9d881b6480eba0a2402f05f7b39f7435c /internal/processing/media/create.go
parentadd trusted proxy for parsing client IPs (#115) (diff)
downloadgotosocial-ad0e26dc04008feec8de0603c88fbd63f87c18ec.tar.xz
Markdown Statuses (#116)
* parse markdown statuses if desired * add some preliminary docs for writing posts
Diffstat (limited to 'internal/processing/media/create.go')
-rw-r--r--internal/processing/media/create.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/processing/media/create.go b/internal/processing/media/create.go
index baf9f2918..5b8cdf604 100644
--- a/internal/processing/media/create.go
+++ b/internal/processing/media/create.go
@@ -26,7 +26,7 @@ import (
apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model"
"github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
- "github.com/superseriousbusiness/gotosocial/internal/util"
+ "github.com/superseriousbusiness/gotosocial/internal/text"
)
func (p *processor) Create(account *gtsmodel.Account, form *apimodel.AttachmentRequest) (*apimodel.Attachment, error) {
@@ -54,7 +54,7 @@ func (p *processor) Create(account *gtsmodel.Account, form *apimodel.AttachmentR
// TODO: handle this inside mediaHandler.ProcessAttachment (just pass more params to it)
// first description
- attachment.Description = util.RemoveHTML(form.Description) // remove any HTML from the image description
+ attachment.Description = text.RemoveHTML(form.Description) // remove any HTML from the image description
// now parse the focus parameter
focusx, focusy, err := parseFocus(form.Focus)