Rename favorite to starred everywhere

This commit is contained in:
Neil Lalonde
2014-01-09 16:22:54 -05:00
parent 73e41a2702
commit 52580f09af
69 changed files with 223 additions and 212 deletions

View File

@@ -31,7 +31,7 @@ module Discourse
class CSRF < Exception; end
def self.filters
@filters ||= [:latest, :hot, :unread, :new, :favorited, :read, :posted]
@filters ||= [:latest, :hot, :unread, :new, :starred, :read, :posted]
end
def self.anonymous_filters

View File

@@ -55,9 +55,9 @@ class TopicQuery
create_list(:latest)
end
# The favorited topics
def list_favorited
create_list(:favorited) {|topics| topics.where('tu.starred') }
# The starred topics
def list_starred
create_list(:starred) {|topics| topics.where('tu.starred') }
end
def list_read