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

This commit is contained in:
root
2014-12-26 22:56:58 -06:00
parent cfd93bfa08
commit e046d726f1

View File

@@ -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);