diff --git a/app/controllers/data_controller.rb b/app/controllers/data_controller.rb index 69143202..7c726153 100644 --- a/app/controllers/data_controller.rb +++ b/app/controllers/data_controller.rb @@ -31,6 +31,8 @@ class DataController < ApplicationController @private_posts = Thredded::PrivatePost.where(user_id: current_user.id) @threads_posted_to = Thredded::Topic.where(id: @posts.pluck(:postable_id) - @topics.pluck(:id)) + + @followed_topics = current_user.thredded_topic_follows.includes(:topic) end def collaboration diff --git a/app/views/data/discussions.html.erb b/app/views/data/discussions.html.erb index 59ccc669..7d6fd505 100644 --- a/app/views/data/discussions.html.erb +++ b/app/views/data/discussions.html.erb @@ -170,6 +170,7 @@