mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: handle topics without excerpt for meta description tag
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user