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) send(link)
} else if (test.length === 4 && test[3][0] === "@" ) { } else if (test.length === 4 && test[3][0] === "@" ) {
pageStack.push(Qt.resolvedUrl("../Profile.qml"), { tlSearch.search = decodeURIComponent("@"+test[3].substring(1)+"@"+test[2])
"display_name": account_display_name, slideshow.positionViewAtIndex(4, ListView.SnapToItem)
"username": account_username, navigation.navigateTo('search')
"user_id": model.account_id,
"profileImage": account_avatar
})
} else { } else {
Qt.openUrlExternally(link); Qt.openUrlExternally(link);
} }