Simplify the og:image and og:description code in stream_entries/show (#1934)
This commit is contained in:
parent
7efde22c3a
commit
73b0af5c93
4 changed files with 16 additions and 11 deletions
4
app/views/stream_entries/_og_description.html.haml
Normal file
4
app/views/stream_entries/_og_description.html.haml
Normal file
|
@ -0,0 +1,4 @@
|
|||
- if activity.is_a?(Status) && activity.spoiler_text?
|
||||
%meta{ property: 'og:description', content: activity.spoiler_text }/
|
||||
- else
|
||||
%meta{ property: 'og:description', content: activity.content }/
|
Loading…
Add table
Add a link
Reference in a new issue