From 8542963ac27bbb0cb19a6d6ec6b12a9fb66dfc22 Mon Sep 17 00:00:00 2001 From: freamon Date: Fri, 27 Sep 2024 07:20:24 +0000 Subject: [PATCH] Include check for post.deleted in check_url_already_posted --- app/community/routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/community/routes.py b/app/community/routes.py index 4516d2a5..13f34314 100644 --- a/app/community/routes.py +++ b/app/community/routes.py @@ -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)