From b2fa79da51a9b8ccef978925b4a9a6ddaf84230e Mon Sep 17 00:00:00 2001 From: Balazs Toldi Date: Thu, 12 Oct 2023 09:15:19 +0200 Subject: [PATCH] Fix issue where display name makes impossible to load saved things This commit fixes an issue where the display name of a user makes it impossible to load saved things. The problem is that the display name was used in the url to load the saved things instead of the username. Closes #179 Signed-off-by: Balazs Toldi --- .../activities/AccountSavedThingActivity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/toldi/infinityforlemmy/activities/AccountSavedThingActivity.java b/app/src/main/java/eu/toldi/infinityforlemmy/activities/AccountSavedThingActivity.java index 77b99970..d81e36e1 100644 --- a/app/src/main/java/eu/toldi/infinityforlemmy/activities/AccountSavedThingActivity.java +++ b/app/src/main/java/eu/toldi/infinityforlemmy/activities/AccountSavedThingActivity.java @@ -283,7 +283,7 @@ public class AccountSavedThingActivity extends BaseActivity implements ActivityT PostFragment fragment = new PostFragment(); Bundle bundle = new Bundle(); bundle.putInt(PostFragment.EXTRA_POST_TYPE, PostPagingSource.TYPE_USER); - bundle.putString(PostFragment.EXTRA_USER_NAME, mAccountName); + bundle.putString(PostFragment.EXTRA_USER_NAME, mAccountQualifiedName); bundle.putString(PostFragment.EXTRA_USER_WHERE, PostPagingSource.USER_WHERE_SAVED); bundle.putString(PostFragment.EXTRA_ACCESS_TOKEN, mAccessToken); bundle.putString(PostFragment.EXTRA_ACCOUNT_NAME, mAccountName); @@ -293,7 +293,7 @@ public class AccountSavedThingActivity extends BaseActivity implements ActivityT } CommentsListingFragment fragment = new CommentsListingFragment(); Bundle bundle = new Bundle(); - bundle.putString(CommentsListingFragment.EXTRA_USERNAME, mAccountName); + bundle.putString(CommentsListingFragment.EXTRA_USERNAME, mAccountQualifiedName); bundle.putString(CommentsListingFragment.EXTRA_ACCESS_TOKEN, mAccessToken); bundle.putString(CommentsListingFragment.EXTRA_ACCOUNT_NAME, mAccountName); bundle.putBoolean(CommentsListingFragment.EXTRA_ARE_SAVED_COMMENTS, true);