mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
FEATURE: remove star concept from Discourse
This commit is contained in:
parent
fa8493118b
commit
efc717c14a
35 changed files with 50 additions and 448 deletions
|
@ -69,11 +69,6 @@ class TopicQuery
|
|||
create_list(:latest, {}, latest_results)
|
||||
end
|
||||
|
||||
# The starred topics
|
||||
def list_starred
|
||||
create_list(:starred) {|topics| topics.where('tu.starred') }
|
||||
end
|
||||
|
||||
def list_read
|
||||
create_list(:read, unordered: true) do |topics|
|
||||
topics.order('COALESCE(tu.last_visited_at, topics.bumped_at) DESC')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue