Use strict locals and remove unused value in card partial (#35919)
This commit is contained in:
parent
5cb7dfafcc
commit
c2b7b28919
1 changed files with 2 additions and 3 deletions
|
|
@ -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: ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue