FIX: handle topics without excerpt for meta description tag

This commit is contained in:
Arpit Jalan 2017-08-08 22:17:05 +05:30
parent d182f0f2d1
commit e36a20660d
1 changed files with 1 additions and 1 deletions

View File

@ -713,7 +713,7 @@ class TopicsController < ApplicationController
respond_to do |format|
format.html do
@description_meta = @topic_view.topic.excerpt
@description_meta = @topic_view.topic.excerpt || @topic_view.summary
store_preloaded("topic_#{@topic_view.topic.id}", MultiJson.dump(topic_view_serializer))
render :show
end