1
0
Fork 0
mirror of https://github.com/gsantner/dandelion synced 2025-09-09 10:19:42 +02:00

Do not publish active6 to json

This commit is contained in:
Gregor Santner 2016-10-28 02:35:17 +02:00
parent 4d1c12a9d9
commit 32b747ebb7
3 changed files with 12 additions and 187 deletions

View file

@ -19,6 +19,7 @@ import java.util.List;
* For all Classes a loading and saving to JSON method is available
*/
public class DiasporaPodList implements Iterable<DiasporaPodList.DiasporaPod>, Serializable {
private static final boolean EXPORT_TOJSON_ACTIVE6 = false;
private List<DiasporaPod> pods = new ArrayList<>();
private boolean trackMergeChanges = false;
private Integer trackAddedIndexStart = -1;
@ -237,9 +238,13 @@ public class DiasporaPodList implements Iterable<DiasporaPodList.DiasporaPod>, S
JSONObject json = new JSONObject();
json.put("name", name);
json.put("score", score);
json.put("active6", active6);
json.put("id", id);
// Only export active6 (frequently changing if told to do)
if (EXPORT_TOJSON_ACTIVE6) {
json.put("active6", active6);
}
// Pod urls
JSONArray jarr = new JSONArray();
for (DiasporaPodUrl value : podUrls) {

File diff suppressed because it is too large Load diff