Fix wrong account opening in links
This commit is contained in:
parent
6447b51d98
commit
ae1d615803
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue