1
0
Fork 0
mirror of https://github.com/gsantner/dandelion synced 2024-11-24 21:32:07 +01: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

@ -8,8 +8,8 @@
07l>> Username (Link): Text 07l>> Username (Link): Text
08l>> Username (E-Mail): Text 08l>> Username (E-Mail): Text
## 99l CONTRIBUTORS ## 99l CONTRIBUTORS
Martín Vukovic (martinvukovic@protonmail.com): Diaspora Native WebApp
Gaukler Faun (https://github.com/scoute-dich): Diaspora Native WebApp additions
Abhijith Balan (abhijithb21 AT openmailbox DOT org): Malayalam translation Abhijith Balan (abhijithb21 AT openmailbox DOT org): Malayalam translation
Airon90 (https://diasp.eu/u/airon90): Italian translation Airon90 (https://diasp.eu/u/airon90): Italian translation
Gaukler Faun (https://github.com/scoute-dich): Diaspora Native WebApp additions
Martín Vukovic (martinvukovic@protonmail.com): Diaspora Native WebApp
SansPseudoFix (https://github.com/SansPseudoFix): French translation SansPseudoFix (https://github.com/SansPseudoFix): French translation

View file

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

File diff suppressed because it is too large Load diff