Add keyword argument pins to sort_comment_results

This commit is contained in:
justcool393 2023-02-16 18:17:21 -06:00
parent 9ba4f1a8af
commit 09308f17d1
2 changed files with 20 additions and 11 deletions

View file

@ -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]}