Fix issue #478 - Tags cannot be followed when clicking on them.

maths
Thomas 2 years ago
parent 6d99ab479f
commit 0e8354b0c1

@ -146,7 +146,8 @@ public class TagVM extends AndroidViewModel {
tagMutableLiveData = new MutableLiveData<>();
new Thread(() -> {
Tag tag = null;
Call<Tag> tagCall = mastodonTagService.follow(token, name);
String filteredValue = name.replaceAll("\\#", "");
Call<Tag> tagCall = mastodonTagService.follow(token, filteredValue);
if (tagCall != null) {
try {
Response<Tag> appResponse = tagCall.execute();

Loading…
Cancel
Save