From 4c9f7fc8be90a853da9534a6c3ceb7f93910b0ff Mon Sep 17 00:00:00 2001 From: FineFindus <63370021+FineFindus@users.noreply.github.com> Date: Thu, 13 Jun 2024 09:34:56 +0200 Subject: [PATCH] fix(HashtagTimelineFragment): display correct URL in recents menu Fixes an issue, where the hashtag, instead of the hashtagName was displayed in the recents menu, causing the toString() function of the hashtag to be called, which inlcuded all the hashtag data, producing a faulty URL. --- .../joinmastodon/android/fragments/HashtagTimelineFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/HashtagTimelineFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/HashtagTimelineFragment.java index b049673ff8..2745ffa0a3 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/HashtagTimelineFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/HashtagTimelineFragment.java @@ -232,7 +232,7 @@ protected FilterContext getFilterContext() { @Override public Uri getWebUri(Uri.Builder base) { - return base.path((isInstanceAkkoma() ? "/tag/" : "/tags/") + hashtag).build(); + return base.path((isInstanceAkkoma() ? "/tag/" : "/tags/") + hashtagName).build(); } @Override