From 08e03fd70fbbe962f855427e4ab4e5993252efb3 Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Tue, 26 Dec 2017 19:14:57 -0600 Subject: [PATCH] Show forum followers per thread --- app/views/thredded/topics/_followers.html.erb | 2 +- config/initializers/thredded.rb | 2 +- db/schema.rb | 11 ----------- 3 files changed, 2 insertions(+), 13 deletions(-) diff --git a/app/views/thredded/topics/_followers.html.erb b/app/views/thredded/topics/_followers.html.erb index 2e1eb29b..60a90b6d 100644 --- a/app/views/thredded/topics/_followers.html.erb +++ b/app/views/thredded/topics/_followers.html.erb @@ -3,7 +3,7 @@ <% if topic.followers.present? %> <%= t('thredded.topics.followed_by')%> <% topic.followers.each do |user| %> - <%= user_mention(user) %> + <%= link_to user.forum_username, user %> <% end %> <% else %> <%= t('thredded.topics.followed_by_noone')%> diff --git a/config/initializers/thredded.rb b/config/initializers/thredded.rb index 5a161c7b..c4e1467a 100644 --- a/config/initializers/thredded.rb +++ b/config/initializers/thredded.rb @@ -50,7 +50,7 @@ Thredded.admin_column = :forum_administrator Thredded.content_visible_while_pending_moderation = true # Whether users that are following a topic are listed on topic page. -Thredded.show_topic_followers = false +Thredded.show_topic_followers = true # This model can be customized further by overriding a handful of methods on the User model. # For more information, see app/models/thredded/user_extender.rb. diff --git a/db/schema.rb b/db/schema.rb index fc6e5932..56b3d36e 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -640,17 +640,6 @@ ActiveRecord::Schema.define(version: 20171226213749) do t.integer "office_id" end - create_table "omniauth_users", force: :cascade do |t| - t.string "provider" - t.string "uid" - t.string "email" - t.integer "user_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - add_index "omniauth_users", ["user_id"], name: "index_omniauth_users_on_user_id" - create_table "original_ownerships", force: :cascade do |t| t.integer "user_id" t.integer "item_id"