diff --git a/files/routes/search.py b/files/routes/search.py index ae857af9a..8cfc31944 100644 --- a/files/routes/search.py +++ b/files/routes/search.py @@ -353,7 +353,7 @@ def searchmessages(v:User): for x in comments: x.unread = True - comments = [x.top_comment for x in comments] + comments = dict.fromkeys([x.top_comment for x in comments]) if v.client: return {"total":total, "data":[x.json(db=g.db) for x in comments]} return render_template("search_comments.html", v=v, query=query, page=page, comments=comments, sort=sort, t=t, total=total, standalone=True, render_replies=True)