mirror of
https://github.com/mastodon/mastodon.git
synced 2025-09-05 09:21:11 +00:00
Use strict locals and remove unused value in card partial (#35919)
This commit is contained in:
parent
5cb7dfafcc
commit
c2b7b28919
|
@ -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…
Reference in New Issue
Block a user