diff --git a/mastodon/build.gradle b/mastodon/build.gradle index c9fd7e40..c50342df 100644 --- a/mastodon/build.gradle +++ b/mastodon/build.gradle @@ -13,8 +13,8 @@ android { applicationId "org.joinmastodon.android" minSdk 23 targetSdk 33 - versionCode 107 - versionName "2.5.5" + versionCode 108 + versionName "2.5.6" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/onboarding/InstanceCatalogSignupFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/onboarding/InstanceCatalogSignupFragment.java index 765941d4..8abd8c4a 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/onboarding/InstanceCatalogSignupFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/onboarding/InstanceCatalogSignupFragment.java @@ -691,7 +691,7 @@ public class InstanceCatalogSignupFragment extends InstanceCatalogFragment{ boolean found=false; for(int i=0;i authorNameEmojiHelper.getImageRequest(index-2); }; } + + public Account getAuthorAccount(){ + if(card.authors!=null && !card.authors.isEmpty() && card.authors.get(0).account!=null) + return card.authors.get(0).account; + else + return card.authorAccount; + } } diff --git a/mastodon/src/main/java/org/joinmastodon/android/ui/viewholders/LinkCardHolder.java b/mastodon/src/main/java/org/joinmastodon/android/ui/viewholders/LinkCardHolder.java index 12b801c7..4192b5f2 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/ui/viewholders/LinkCardHolder.java +++ b/mastodon/src/main/java/org/joinmastodon/android/ui/viewholders/LinkCardHolder.java @@ -189,7 +189,7 @@ public class LinkCardHolder extends S private void onAuthorChipClick(View v){ Bundle args=new Bundle(); args.putString("account", accountID); - args.putParcelable("profileAccount", Parcels.wrap(item.getCard().card.authorAccount)); + args.putParcelable("profileAccount", Parcels.wrap(item.getCard().getAuthorAccount())); Nav.go(activity, ProfileFragment.class, args); }