mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-10-30 16:06:28 +01:00
7 lines
382 B
Text
7 lines
382 B
Text
|
- if activity.is_a?(Status) && activity.non_sensitive_with_media?
|
||
|
%meta{ property: 'og:image', content: full_asset_url(activity.media_attachments.first.file.url(:small)) }/
|
||
|
- else
|
||
|
%meta{ property: 'og:image', content: full_asset_url(account.avatar.url(:original)) }/
|
||
|
%meta{ property: 'og:image:width', content: '120' }/
|
||
|
%meta{ property: 'og:image:height', content: '120' }/
|