From: Joshua Goins Date: Mon, 30 Jun 2025 20:19:09 +0000 (-0400) Subject: [PATCH] Fix a crash when trying to block an account through the post menu X-Git-Tag: archive/raspbian/25.04.3-1+rpi1^2~8 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=cc761cbd459580e7936b3d673ddff74108019755;p=tokodon.git [PATCH] Fix a crash when trying to block an account through the post menu Not sure why I try to access a non-existent identity property here, but it's fixed now. Gbp-Pq: Name upstream_128cdaa7_Fix-a-crash-when-trying-to-block-an-account-through-the-post-menu.patch --- diff --git a/src/content/ui/PostDelegate/PostMenu.qml b/src/content/ui/PostDelegate/PostMenu.qml index bf27c4e..2c7b4f7 100644 --- a/src/content/ui/PostDelegate/PostMenu.qml +++ b/src/content/ui/PostDelegate/PostMenu.qml @@ -181,9 +181,9 @@ Components.ConvergentContextMenu { } onTriggered: { if (root.authorIdentity.relationship && root.authorIdentity.relationship.blocking) { - AccountManager.selectedAccount.unblockAccount(root.authorIdentity.identity); + AccountManager.selectedAccount.unblockAccount(root.authorIdentity); } else { - AccountManager.selectedAccount.blockAccount(root.authorIdentity.identity); + AccountManager.selectedAccount.blockAccount(root.authorIdentity); } } }