mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Rename favorite to starred everywhere
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user