Add keyword argument pins to sort_comment_results
This commit is contained in:
parent
9ba4f1a8af
commit
09308f17d1
2 changed files with 20 additions and 11 deletions
|
@ -406,7 +406,7 @@ def all_comments(v):
|
|||
return q
|
||||
|
||||
comments, _ = get_comment_trees_eager(comment_tree_filter, sort=sort, v=v)
|
||||
comments = sort_comment_results(comments, sort=sort)
|
||||
comments = sort_comment_results(comments, sort=sort, pins=False)
|
||||
|
||||
if request.headers.get("Authorization"):
|
||||
return {"data": [x.json for x in comments]}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue