revert
This commit is contained in:
@@ -231,9 +231,6 @@ class PostQueryBuilder
|
|||||||
|
|
||||||
when "rank"
|
when "rank"
|
||||||
relation = relation.order("log(3, posts.score) + (extract(epoch from posts.created_at) - extract(epoch from timestamp '2005-05-24')) / 45000 DESC")
|
relation = relation.order("log(3, posts.score) + (extract(epoch from posts.created_at) - extract(epoch from timestamp '2005-05-24')) / 45000 DESC")
|
||||||
|
|
||||||
when nil
|
|
||||||
relation = relation.order("posts.id DESC")
|
|
||||||
|
|
||||||
else
|
else
|
||||||
relation = relation.where("false")
|
relation = relation.where("false")
|
||||||
|
|||||||
Reference in New Issue
Block a user