FIX: handle topics without excerpt for meta description tag
This commit is contained in:
parent
d182f0f2d1
commit
e36a20660d
|
@ -713,7 +713,7 @@ class TopicsController < ApplicationController
|
||||||
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html do
|
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))
|
store_preloaded("topic_#{@topic_view.topic.id}", MultiJson.dump(topic_view_serializer))
|
||||||
render :show
|
render :show
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue