diff --git a/lib/topic_query.rb b/lib/topic_query.rb index c19e01b96..f710f351c 100644 --- a/lib/topic_query.rb +++ b/lib/topic_query.rb @@ -189,7 +189,7 @@ class TopicQuery end topics = topics.to_a.each do |t| - t.allowed_user_ids = filter == :private_messags ? t.allowed_users.map{|u| u.id} : [] + t.allowed_user_ids = filter == :private_messages ? t.allowed_users.map{|u| u.id} : [] end list = TopicList.new(filter, @user, topics.to_a, options.merge(@options))