diff --git a/app/controllers/list_controller.rb b/app/controllers/list_controller.rb index 24bc618b86a..58d894e2e2c 100644 --- a/app/controllers/list_controller.rb +++ b/app/controllers/list_controller.rb @@ -252,6 +252,7 @@ class ListController < ApplicationController end @category = Category.query_category(slug_or_id, parent_category_id) + @description_meta = @category.description guardian.ensure_can_see!(@category) diff --git a/app/controllers/topics_controller.rb b/app/controllers/topics_controller.rb index a802ec86725..4db5bdeab1a 100644 --- a/app/controllers/topics_controller.rb +++ b/app/controllers/topics_controller.rb @@ -373,6 +373,7 @@ class TopicsController < ApplicationController respond_to do |format| format.html do + @description_meta = @topic_view.topic.excerpt store_preloaded("topic_#{@topic_view.topic.id}", MultiJson.dump(topic_view_serializer)) end diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index f72ff5126dd..3f47d40e07f 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -4,7 +4,7 @@