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

This commit is contained in:
Matt Jankowski 2025-08-27 09:22:39 -04:00 committed by GitHub
parent 5cb7dfafcc
commit c2b7b28919
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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: ''