From c211f4e4c1a14f2aa782c9094d40440d15f34925 Mon Sep 17 00:00:00 2001 From: Richard Lewis Date: Mon, 20 Feb 2017 18:14:24 +0000 Subject: [PATCH] Removed old comment -- error was due to non image file type (HTML) --- src/github.com/matrix-org/go-neb/services/imgur/imgur.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/github.com/matrix-org/go-neb/services/imgur/imgur.go b/src/github.com/matrix-org/go-neb/services/imgur/imgur.go index 4019aca..886e116 100644 --- a/src/github.com/matrix-org/go-neb/services/imgur/imgur.go +++ b/src/github.com/matrix-org/go-neb/services/imgur/imgur.go @@ -159,8 +159,6 @@ func (s *Service) cmdImgurImgSearch(client *gomatrix.Client, roomID, userID stri }, nil } - // FIXME -- Sometimes upload fails with a cryptic error - "msg=Upload request failed code=400" - // log.Printf("Uploading image at: %s", imgURL) resUpload, err := client.UploadLink(imgURL) if err != nil { return nil, fmt.Errorf("Failed to upload Imgur image (%s) to matrix: %s", imgURL, err.Error())