Workaround for open user profiles from toots

This commit is contained in:
molan-git 2020-01-24 22:08:14 +01:00 committed by GitHub
parent c716191137
commit 5a6a7646e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}