Browse Source

Fix repost check not using TopicQuery

This was making it include deleted/removed posts.
merge-requests/76/merge
Deimos 5 years ago
parent
commit
ed370209b8
  1. 2
      tildes/tildes/views/topic.py

2
tildes/tildes/views/topic.py

@ -61,7 +61,7 @@ def post_group_topics(
if link: if link:
# check to see if this link has been posted before # check to see if this link has been posted before
previous_topics = ( previous_topics = (
request.db_session.query(Topic)
request.query(Topic)
.filter(Topic.link == link) .filter(Topic.link == link)
.order_by(desc(Topic.created_time)) .order_by(desc(Topic.created_time))
.limit(5) .limit(5)

Loading…
Cancel
Save