improved online hook

This commit is contained in:
spiky-s
2022-08-18 22:13:11 +03:00
committed by gdlbo
parent d400da3ab9
commit 3c9a787a77
@@ -181,9 +181,19 @@ public class OnlineFormatterHook {
return json;
}
public static JSONArray onlineHookList(JSONArray jsonArr) throws ParseException, IOException, JSONException {
if (!getBoolValue("onlinefix", false)) return jsonArr;
try {
setOnlineInfoUsers(jsonArr);
} catch (Exception e) {
Log.e("onlineHookProfiles", e.getMessage());
}
return jsonArr;
}
public static JSONObject onlineHookProfiles(JSONObject json) throws ParseException, IOException, JSONException {
if (!getBoolValue("onlinefix", false)) return json;
Log.d("test", json.toString());
try {
setOnlineInfoUsers(json.optJSONArray("profiles"));