Show forum followers per thread

This commit is contained in:
Andrew Brown 2017-12-26 19:14:57 -06:00
parent 05de8b7ef7
commit 08e03fd70f
3 changed files with 2 additions and 13 deletions

View File

@ -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')%>

View File

@ -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.

View File

@ -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"