FEATURE: better unfurling of Discourse topics on Slack

This commit is contained in:
Arpit Jalan
2015-12-28 18:22:31 +05:30
parent 0fdac4fc42
commit 6ef1537ee0
5 changed files with 25 additions and 2 deletions

View File

@@ -60,7 +60,7 @@
<% content_for :head do %>
<%= auto_discovery_link_tag(@topic_view, {action: :feed, slug: @topic_view.topic.slug, topic_id: @topic_view.topic.id}, title: t('rss_posts_in_topic', topic: @topic_view.title), type: 'application/rss+xml') %>
<%= raw crawlable_meta_data(title: @topic_view.title, description: @topic_view.summary, image: @topic_view.image_url) %>
<%= raw crawlable_meta_data(title: @topic_view.title, description: @topic_view.summary, image: @topic_view.image_url, read_time: @topic_view.read_time, like_count: @topic_view.like_count) %>
<% end %>
<% content_for(:title) { "#{@topic_view.page_title}" } %>