diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/CustomLocalTimelineFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/CustomLocalTimelineFragment.java index dd6bb3a4f..ec3b0196c 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/CustomLocalTimelineFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/CustomLocalTimelineFragment.java @@ -48,7 +48,7 @@ public class CustomLocalTimelineFragment extends PinnableStatusListFragment { public void onAttach(Activity activity){ super.onAttach(activity); domain=getArguments().getString("domain"); - updateTitle(getArguments().getString("domain")); + updateTitle(domain); setHasOptionsMenu(true); } @@ -82,7 +82,7 @@ public class CustomLocalTimelineFragment extends PinnableStatusListFragment { onDataLoaded(result, !result.isEmpty()); } }) - .execNoAuth("fosstodon.org"); + .execNoAuth(domain); } @Override diff --git a/mastodon/src/main/java/org/joinmastodon/android/model/TimelineDefinition.java b/mastodon/src/main/java/org/joinmastodon/android/model/TimelineDefinition.java index ba832cd80..043d068fe 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/model/TimelineDefinition.java +++ b/mastodon/src/main/java/org/joinmastodon/android/model/TimelineDefinition.java @@ -30,7 +30,7 @@ public class TimelineDefinition { private @Nullable String listTitle; private @Nullable String hashtagName; - private @Nullable String customLocalTimelineDomain; + private @Nullable String domain; public static TimelineDefinition ofList(String listId, String listTitle) { TimelineDefinition def = new TimelineDefinition(TimelineType.LIST); @@ -55,7 +55,7 @@ public class TimelineDefinition { public static TimelineDefinition ofCustomLocalTimeline(String domain) { TimelineDefinition def = new TimelineDefinition(TimelineType.CUSTOM_LOCAL_TIMELINE); - def.customLocalTimelineDomain = domain; + def.domain = domain; return def; } @@ -92,7 +92,7 @@ public class TimelineDefinition { case POST_NOTIFICATIONS -> ctx.getString(R.string.sk_timeline_posts); case LIST -> listTitle; case HASHTAG -> hashtagName; - case CUSTOM_LOCAL_TIMELINE -> customLocalTimelineDomain; + case CUSTOM_LOCAL_TIMELINE -> domain; }; }