refactor(Instance.java): add back the translation support fields on Instance.java

This commit is contained in:
LucasGGamerM
2025-04-16 12:43:15 -03:00
parent 0b39b6547b
commit e8db6c5f39

View File

@@ -39,6 +39,9 @@ public abstract class Instance extends BaseModel{
// non-standard field in some Mastodon forks
public int maxTootChars;
// MOSHIDON: this is for translation support detection.
public V2 v2;
// MOSHIDON: we got pleroma babyyyyyy
public Pleroma pleroma;
public PleromaPollLimits pollLimits;
@@ -155,6 +158,22 @@ public abstract class Instance extends BaseModel{
public int maxExpiration;
}
// MOSHIDON: we check for translation support, so this needs to be here
@Parcel
public static class V2 extends BaseModel {
public V2.Configuration configuration;
@Parcel
public static class Configuration {
public TranslationConfiguration translation;
}
@Parcel
public static class TranslationConfiguration{
public boolean enabled;
}
}
// MOSHIDON: more pleroma :D
@Parcel
public static class Pleroma extends BaseModel {