Fix issue #66 - Bad tags when clicking on a tag

pull/95/head
Thomas 3 years ago
parent ffbad79826
commit 42df8dfcb6

@ -178,14 +178,16 @@ public class FragmentMastodonTimeline extends Fragment {
statusReport = (Status) getArguments().getSerializable(Helper.ARG_STATUS_REPORT);
}
if (tagTimeline != null) {
ident = tagTimeline.name;
ident = "@T@" + tagTimeline.name;
if (tagTimeline.isART) {
timelineType = Timeline.TimeLineEnum.ART;
}
} else if (list_id != null) {
ident = list_id;
ident = "@l@" + list_id;
} else if (remoteInstance != null) {
ident = remoteInstance;
ident = "@R@" + remoteInstance;
} else if (search != null) {
ident = "@S@" + search;
} else {
ident = null;
}

@ -42,7 +42,7 @@ public class TopBarVM extends AndroidViewModel {
Handler mainHandler = new Handler(Looper.getMainLooper());
Pinned pinnedTimeline = null;
try {
pinnedTimeline = pinned.getAllPinned(BaseMainActivity.accountWeakReference.get());
pinnedTimeline = pinned.getPinned(BaseMainActivity.accountWeakReference.get());
} catch (DBException e) {
e.printStackTrace();
}

Loading…
Cancel
Save