Commit fe91fddc authored by Thomas's avatar Thomas
Browse files

- Fix remote mention resolution

parent 2d598d14
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -324,6 +324,15 @@ public class SpannableHelper {
                                        targetedMention = mention;
                                    } else {
                                        acct = mention.acct;
                                        if (acct != null && !acct.contains("@") && mention.url != null) {
                                            try {
                                                String host = new URL(mention.url).getHost();
                                                if (host != null) {
                                                    acct = acct + "@" + host;
                                                }
                                            } catch (MalformedURLException ignored) {
                                            }
                                        }
                                    }
                                    break;
                                }