--- a/vendor/github.com/McKael/madon/v3/media.go Sat Feb 04 13:18:01 2023 +0100
+++ b/vendor/github.com/McKael/madon/v3/media.go Sat Feb 04 13:26:06 2023 +0100
@@ -13,7 +13,6 @@
"mime/multipart"
"os"
"path/filepath"
- "strconv"
"github.com/pkg/errors"
"github.com/sendgrid/rest"
@@ -106,7 +105,7 @@
// UpdateMedia updates the description and focal point of a media
// One of the description and focus arguments can be nil to not be updated.
-func (mc *Client) UpdateMedia(mediaID int64, description, focus *string) (*Attachment, error) {
+func (mc *Client) UpdateMedia(mediaID ActivityID, description, focus *string) (*Attachment, error) {
params := make(apiCallParams)
if description != nil {
params["description"] = *description
@@ -115,7 +114,7 @@
params["focus"] = *focus
}
- endPoint := "media/" + strconv.FormatInt(mediaID, 10)
+ endPoint := "media/" + mediaID
var attachment Attachment
if err := mc.apiCall("v1/"+endPoint, rest.Put, params, nil, nil, &attachment); err != nil {
return nil, err