Increase timeout when posting media + adds search by name with instances.social api
This commit is contained in:
parent
04f8332a24
commit
2303a8e836
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue