From c3174f4de9ae60f2213f7ecdb9f3fac57925eadd Mon Sep 17 00:00:00 2001 From: Wim Date: Sat, 21 Apr 2018 20:49:44 +0200 Subject: Update GetFileLinks to API_V4 --- matterclient/matterclient.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'matterclient') diff --git a/matterclient/matterclient.go b/matterclient/matterclient.go index afd445b5..7da16eb0 100644 --- a/matterclient/matterclient.go +++ b/matterclient/matterclient.go @@ -574,7 +574,7 @@ func (m *MMClient) GetFileLinks(filenames []string) []string { res, resp := m.Client.GetFileLink(f) if resp.Error != nil { // public links is probably disabled, create the link ourselves - output = append(output, uriScheme+m.Credentials.Server+model.API_URL_SUFFIX_V3+"/files/"+f+"/get") + output = append(output, uriScheme+m.Credentials.Server+model.API_URL_SUFFIX_V4+"/files/"+f) continue } output = append(output, res) -- cgit v1.2.3