Commit 0e8354b0 authored by Thomas's avatar Thomas
Browse files

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

parent 6d99ab47
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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();