mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -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')
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue