forked from MarseyWorld/MarseyWorld
sort pinned top-level comments by most recent first
parent
4b8387a01c
commit
ca8c8297c5
|
@ -213,6 +213,7 @@ def post_id(pid, anything=None, v=None, sub=None):
|
|||
pinned2.add(pin)
|
||||
|
||||
pinned = list(pinned2)
|
||||
pinned.sort(key=lambda x: x.created_utc, reverse=True)
|
||||
post.replies = pinned + comments
|
||||
|
||||
post.views += 1
|
||||
|
|
Loading…
Reference in New Issue