From 620cc9435146b7960fa97d82c76eb42e2eb6b3b4 Mon Sep 17 00:00:00 2001 From: LucasGGamerM Date: Fri, 2 Aug 2024 16:02:04 -0300 Subject: [PATCH] fix(pixelfed): make pixelfed login work again --- .../src/main/java/org/joinmastodon/android/model/Token.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/model/Token.java b/mastodon/src/main/java/org/joinmastodon/android/model/Token.java index 5c6ffddcc..4c060ffb9 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/model/Token.java +++ b/mastodon/src/main/java/org/joinmastodon/android/model/Token.java @@ -1,15 +1,15 @@ package org.joinmastodon.android.model; -import org.joinmastodon.android.api.AllFieldsAreRequired; +import org.joinmastodon.android.api.RequiredField; /** * Represents an OAuth token used for authenticating with the API and performing actions. */ -@AllFieldsAreRequired public class Token extends BaseModel{ /** * An OAuth token to be used for authorization. */ + @RequiredField public String accessToken; /** * The OAuth token type. Mastodon uses Bearer tokens. @@ -23,5 +23,6 @@ public class Token extends BaseModel{ * When the token was generated. * (unixtime) */ + @RequiredField public long createdAt; }