From be2b2903008309c4beab9c2f2ee9bc5624e43445 Mon Sep 17 00:00:00 2001 From: FineFindus Date: Wed, 1 Nov 2023 19:56:59 +0100 Subject: [PATCH] fix(status/translation): do not require all fields --- .../java/org/joinmastodon/android/model/Translation.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/model/Translation.java b/mastodon/src/main/java/org/joinmastodon/android/model/Translation.java index 5a86153b47..fc4d971055 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/model/Translation.java +++ b/mastodon/src/main/java/org/joinmastodon/android/model/Translation.java @@ -1,11 +1,14 @@ package org.joinmastodon.android.model; -import org.joinmastodon.android.api.AllFieldsAreRequired; -@AllFieldsAreRequired +import org.joinmastodon.android.api.RequiredField; + public class Translation extends BaseModel{ + @RequiredField public String content; + @RequiredField public String detectedSourceLanguage; + @RequiredField public String provider; public MediaAttachment[] mediaAttachments; public PollTranslation poll;