summaryrefslogtreecommitdiff
path: root/mastodon/status.go
diff options
context:
space:
mode:
Diffstat (limited to 'mastodon/status.go')
-rw-r--r--mastodon/status.go12
1 files changed, 8 insertions, 4 deletions
diff --git a/mastodon/status.go b/mastodon/status.go
index 34f8727..0a95e80 100644
--- a/mastodon/status.go
+++ b/mastodon/status.go
@@ -311,10 +311,14 @@ func (c *Client) UploadMediaFromMultipartFileHeader(ctx context.Context, fh *mul
var buf bytes.Buffer
mw := multipart.NewWriter(&buf)
fname := filepath.Base(fh.Filename)
- err = mw.WriteField("description", fname)
- if err != nil {
- return nil, err
- }
+ // I dont like setting the alt text of an image to the filename
+ // rather not have alt text at all
+
+ // err = mw.WriteField("description", fname)
+ // if err != nil {
+ // return nil, err
+ // }
+
part, err := mw.CreateFormFile("file", fname)
if err != nil {
return nil, err