diff options
author | Thomas <tschneider.ac@gmail.com> | 2022-07-19 16:43:29 +0200 |
---|---|---|
committer | Thomas <tschneider.ac@gmail.com> | 2022-07-19 16:43:29 +0200 |
commit | eaac079d8973245c6f011fefc3760d67d4f05571 (patch) | |
tree | 0b8526f78c981f53b486f63299640894139483a3 /app | |
parent | 8a0460536cdd4e3489bf64a858ca3bab6efb2201 (diff) |
Fix issue #252 - Empty timelines for Tags
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/app/fedilab/android/viewmodel/mastodon/TimelinesVM.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/src/main/java/app/fedilab/android/viewmodel/mastodon/TimelinesVM.java b/app/src/main/java/app/fedilab/android/viewmodel/mastodon/TimelinesVM.java index bfd0ace12..78c8d5b8e 100644 --- a/app/src/main/java/app/fedilab/android/viewmodel/mastodon/TimelinesVM.java +++ b/app/src/main/java/app/fedilab/android/viewmodel/mastodon/TimelinesVM.java @@ -397,7 +397,8 @@ public class TimelinesVM extends AndroidViewModel { MastodonTimelinesService mastodonTimelinesService = init(instance); new Thread(() -> { 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) { try { Response<List<Status>> hashTagTlResponse = hashTagTlCall.execute(); |