mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-02-03 00:31:25 -08:00
Include check for post.deleted in check_url_already_posted
This commit is contained in:
parent
a926eb0f1a
commit
8542963ac2
1 changed files with 1 additions and 1 deletions
|
@ -1903,7 +1903,7 @@ def check_url_already_posted():
|
||||||
url = request.args.get('link_url')
|
url = request.args.get('link_url')
|
||||||
if url:
|
if url:
|
||||||
url = remove_tracking_from_link(url.strip())
|
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)
|
return flask.render_template('community/check_url_posted.html', communities=communities)
|
||||||
else:
|
else:
|
||||||
abort(404)
|
abort(404)
|
||||||
|
|
Loading…
Add table
Reference in a new issue