about summary refs log tree commit diff
path: root/app/views/stream_entries/_og_image.html.haml
blob: f725209d82a1a490a88b044c09780e5f588106bf (plain) (blame)
1
2
3
4
5
6
- 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' }/