From 5a6a7646e670375640e170c76f053c7d87b6235d Mon Sep 17 00:00:00 2001 From: molan-git <59296158+molan-git@users.noreply.github.com> Date: Fri, 24 Jan 2020 22:08:14 +0100 Subject: [PATCH] Workaround for open user profiles from toots --- qml/pages/components/VisualContainer.qml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/qml/pages/components/VisualContainer.qml b/qml/pages/components/VisualContainer.qml index 95b0169..2d42d6c 100644 --- a/qml/pages/components/VisualContainer.qml +++ b/qml/pages/components/VisualContainer.qml @@ -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); }