mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 11:44:49 +08:00
fix weird indentation
This commit is contained in:
parent
c76161787c
commit
ecbeaed0bc
|
@ -341,13 +341,12 @@ class TopicView
|
|||
end
|
||||
end
|
||||
|
||||
# Returns an array of [id, post_number, days_ago] tuples. `days_ago` is there for the timeline
|
||||
# calculations.
|
||||
# Returns an array of [id, post_number, days_ago] tuples.
|
||||
# `days_ago` is there for the timeline calculations.
|
||||
def filtered_post_stream
|
||||
@filtered_post_stream ||= @filtered_posts.order(:sort_order)
|
||||
.pluck(:id,
|
||||
:post_number,
|
||||
'EXTRACT(DAYS FROM CURRENT_TIMESTAMP - created_at)::INT AS days_ago')
|
||||
@filtered_post_stream ||= @filtered_posts
|
||||
.order(:sort_order)
|
||||
.pluck(:id, :post_number, 'EXTRACT(DAYS FROM CURRENT_TIMESTAMP - created_at)::INT AS days_ago')
|
||||
end
|
||||
|
||||
def filtered_post_ids
|
||||
|
|
Loading…
Reference in New Issue
Block a user