From e518a69a4952d7a161ca9ab7adbf3c4777c68d1b Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 29 May 2024 19:40:48 +0100 Subject: [PATCH] Replace slashes --- webapp_post.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/webapp_post.py b/webapp_post.py index 9e8cba2f8..8df73cb68 100644 --- a/webapp_post.py +++ b/webapp_post.py @@ -1338,7 +1338,7 @@ def _announce_unattributed_html(translate: {}, if translate.get(announces_str): announces_str = translate[announces_str] post_id = remove_id_ending(post_json_object['object']['id']) - post_bookmark = '#' + post_id.replace('--', '-') + post_bookmark = '#' + post_id.replace('//', '-').replace('/', '-') post_link = '/users/' + nickname + '?convthread=' + \ post_id.replace('--', '/') + post_bookmark return '