Fix issue #252 - Empty timelines for Tags
This commit is contained in:
parent
8a0460536c
commit
eaac079d89
@ -397,7 +397,8 @@ public class TimelinesVM extends AndroidViewModel {
|
|||||||
MastodonTimelinesService mastodonTimelinesService = init(instance);
|
MastodonTimelinesService mastodonTimelinesService = init(instance);
|
||||||
new Thread(() -> {
|
new Thread(() -> {
|
||||||
Statuses statuses = new Statuses();
|
Statuses statuses = new Statuses();
|
||||||
Call<List<Status>> hashTagTlCall = mastodonTimelinesService.getHashTag(token, hashtag, local, onlyMedia, all, any, none, maxId, sinceId, minId, limit);
|
String hashtagTrim = hashtag.replaceAll("\\#", "");
|
||||||
|
Call<List<Status>> hashTagTlCall = mastodonTimelinesService.getHashTag(token, hashtagTrim, local, onlyMedia, all, any, none, maxId, sinceId, minId, limit);
|
||||||
if (hashTagTlCall != null) {
|
if (hashTagTlCall != null) {
|
||||||
try {
|
try {
|
||||||
Response<List<Status>> hashTagTlResponse = hashTagTlCall.execute();
|
Response<List<Status>> hashTagTlResponse = hashTagTlCall.execute();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user