Fix wrong account opening in links

This commit is contained in:
bleakgrey 2018-05-16 12:11:54 +03:00
parent 6447b51d98
commit ae1d615803
1 changed files with 3 additions and 2 deletions

View File

@ -40,8 +40,9 @@ public class Tootle.RichLabel : Gtk.Label {
}
if ("/@" in url){
var profile = url.split("/@")[1];
AccountView.open_from_name (profile);
var uri = new Soup.URI (url);
var username = url.split("/@")[1];
AccountView.open_from_name ("@" + username + "@" + uri.get_host ());
return true;
}