From e046d726f16849ac610da76f67e57c6a0002a7f0 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 26 Dec 2014 22:56:58 -0600 Subject: [PATCH] the file_get_links low-level API was returning -1 because the share link was not being returned. this was an artifact of the new API update. even though the direct_download_link was being returned, we were erroneously returning -1 --- mfapi/apicalls/file_get_links.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mfapi/apicalls/file_get_links.c b/mfapi/apicalls/file_get_links.c index 826cc82..43e87c1 100644 --- a/mfapi/apicalls/file_get_links.c +++ b/mfapi/apicalls/file_get_links.c @@ -150,8 +150,8 @@ static int _decode_file_get_links(mfhttp * conn, void *data) file_set_onetime_link(file, (char *)json_string_value(onetime_link)); } // if this is false something went horribly wrong - if (share_link == NULL) - retval = -1; + // if (share_link == NULL) + // retval = -1; json_decref(root);