Increase timeout when posting media + adds search by name with instances.social api

This commit is contained in:
tom79 2017-08-06 16:09:19 +02:00
parent 04f8332a24
commit 2303a8e836
2 changed files with 2 additions and 2 deletions

View File

@ -1065,7 +1065,7 @@ public class API {
RequestParams params = new RequestParams();
params.put("file", inputStream);
post("/media", 120000, params, new JsonHttpResponseHandler() {
post("/media", 240000, params, new JsonHttpResponseHandler() {
@Override
public void onSuccess(int statusCode, Header[] headers, JSONObject response) {

View File

@ -54,7 +54,7 @@ public class KinrarClient {
private String getAbsoluteUrl(String action) {
return "https://instances.social/api/1.0/" + action;
return "https://instances.social/api/1.0" + action;
}