Use strict locals and remove unused value in card partial (#35919)

This commit is contained in:
Matt Jankowski
2025-08-27 13:22:39 +00:00
committed by GitHub
parent 5cb7dfafcc
commit c2b7b28919
+2 -3
View File
@@ -1,8 +1,7 @@
- account_url = local_assigns[:admin] ? admin_account_path(account.id) : ActivityPub::TagManager.instance.url_for(account)
- compact ||= false
-# locals: (account:, compact: false)
.card.h-card
= link_to account_url, target: '_blank', rel: 'noopener' do
= link_to ActivityPub::TagManager.instance.url_for(account), target: '_blank', rel: 'noopener' do
- unless compact
.card__img
= image_tag account.header.url, alt: ''