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:
parent
4d1c12a9d9
commit
32b747ebb7
3 changed files with 12 additions and 187 deletions
|
@ -8,8 +8,8 @@
|
|||
07l>> Username (Link): Text
|
||||
08l>> Username (E-Mail): Text
|
||||
## 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
|
||||
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
|
||||
|
|
|
@ -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
Loading…
Reference in a new issue