From 73b0af5c938b49ef0a4a21921b41a3b1bcd4e05e Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Sun, 16 Apr 2017 10:38:02 -0400 Subject: Simplify the og:image and og:description code in stream_entries/show (#1934) --- app/views/stream_entries/_og_description.html.haml | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 app/views/stream_entries/_og_description.html.haml (limited to 'app/views/stream_entries/_og_description.html.haml') diff --git a/app/views/stream_entries/_og_description.html.haml b/app/views/stream_entries/_og_description.html.haml new file mode 100644 index 000000000..5762aca04 --- /dev/null +++ b/app/views/stream_entries/_og_description.html.haml @@ -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 }/ -- cgit