Include check for post.deleted in check_url_already_posted

This commit is contained in:
freamon 2024-09-27 07:20:24 +00:00
parent a926eb0f1a
commit 8542963ac2

View file

@ -1903,7 +1903,7 @@ def check_url_already_posted():
url = request.args.get('link_url')
if url:
url = remove_tracking_from_link(url.strip())
communities = Community.query.filter_by(banned=False).join(Post).filter(Post.url == url).all()
communities = Community.query.filter_by(banned=False).join(Post).filter(Post.url == url, Post.deleted == False).all()
return flask.render_template('community/check_url_posted.html', communities=communities)
else:
abort(404)