Workaround for open user profiles from toots
This commit is contained in:
parent
c716191137
commit
5a6a7646e6
1 changed files with 4 additions and 6 deletions
|
@ -134,12 +134,10 @@ BackgroundItem {
|
|||
}));
|
||||
send(link)
|
||||
} else if (test.length === 4 && test[3][0] === "@" ) {
|
||||
pageStack.push(Qt.resolvedUrl("../Profile.qml"), {
|
||||
"display_name": account_display_name,
|
||||
"username": account_username,
|
||||
"user_id": model.account_id,
|
||||
"profileImage": account_avatar
|
||||
})
|
||||
tlSearch.search = decodeURIComponent("@"+test[3].substring(1)+"@"+test[2])
|
||||
slideshow.positionViewAtIndex(4, ListView.SnapToItem)
|
||||
navigation.navigateTo('search')
|
||||
|
||||
} else {
|
||||
Qt.openUrlExternally(link);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue