Skip to content

Commit f567577

Browse files
use correct route
1 parent 11695f0 commit f567577

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/com/owncloud/android/lib/resources/users/GetRemoteUserInfoOperation.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public class GetRemoteUserInfoOperation extends RemoteOperation {
4646
private static final String TAG = GetRemoteUserInfoOperation.class.getSimpleName();
4747

4848
// OCS Route
49-
private static final String OCS_ROUTE = "/index.php/ocs/cloud/user?format=json";
49+
private static final String OCS_ROUTE = "/ocs/v1.php/cloud/user?format=json";
5050

5151
// JSON Node names
5252
private static final String NODE_OCS = "ocs";
@@ -86,7 +86,7 @@ protected RemoteOperationResult run(OwnCloudClient client) {
8686
// Result
8787
result = new RemoteOperationResult(true, status, get.getResponseHeaders());
8888
// Username in result.data
89-
ArrayList<Object> data = new ArrayList<Object>();
89+
ArrayList<Object> data = new ArrayList<>();
9090
data.add(userInfo);
9191
result.setData(data);
9292
} else {

0 commit comments

Comments
 (0)