[PATCH] Fix a crash when trying to block an account through the post menu
authorJoshua Goins <josh@redstrate.com>
Mon, 30 Jun 2025 20:19:09 +0000 (16:19 -0400)
committerAurélien COUDERC <coucouf@debian.org>
Thu, 24 Jul 2025 16:34:20 +0000 (18:34 +0200)
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

src/content/ui/PostDelegate/PostMenu.qml

index bf27c4ed73b4485316e11db3b7de30c9f5881fb7..2c7b4f770d525da4af0501f98ccd95c3c0ef525f 100644 (file)
@@ -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);
             }
         }
     }