Clean up and improve generated OpenGraph tags (#4901)
- Return all images as og:image - Return videos as og:image (preview) and og:video - Return profile:username on profiles
This commit is contained in:
parent
4931eac280
commit
8f8e677630
8 changed files with 44 additions and 25 deletions
|
@ -1,4 +1,4 @@
|
|||
- if activity.is_a?(Status) && activity.spoiler_text?
|
||||
%meta{ property: 'og:description', content: activity.spoiler_text }/
|
||||
= opengraph 'og:description', activity.spoiler_text
|
||||
- else
|
||||
%meta{ property: 'og:description', content: activity.content }/
|
||||
= opengraph 'og:description', activity.content
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue