forked from j62/ctbrec
1
0
Fork 0

Don't show replies, but only new status

This commit is contained in:
0xboobface 2019-02-13 12:23:19 +01:00
parent 2b82215678
commit 0a58b91fec
1 changed files with 5 additions and 3 deletions

View File

@ -53,10 +53,12 @@ public class NewsTab extends Tab implements TabSelectionListener {
Platform.runLater(() -> { Platform.runLater(() -> {
layout.getChildren().clear(); layout.getChildren().clear();
for (Status status : statusArray) { for (Status status : statusArray) {
if(status.getInReplyToId() == null) {
StatusPane stp = new StatusPane(status); StatusPane stp = new StatusPane(status);
layout.getChildren().add(stp); layout.getChildren().add(stp);
VBox.setMargin(stp, new Insets(10)); VBox.setMargin(stp, new Insets(10));
} }
}
}); });
} else if(body.startsWith("{")) { } else if(body.startsWith("{")) {
JSONObject json = new JSONObject(response.body().string()); JSONObject json = new JSONObject(response.body().string());