Handle delete endings on ids

main
Bob Mottram 2022-11-13 20:25:07 +00:00
parent 5fd1fb746d
commit 14abebf64a
1 changed files with 4 additions and 0 deletions

View File

@ -756,8 +756,12 @@ def remove_id_ending(id_str: str) -> str:
id_str = id_str[:-len('/event')]
elif id_str.endswith('/replies'):
id_str = id_str[:-len('/replies')]
elif id_str.endswith('/delete'):
id_str = id_str[:-len('/delete')]
if id_str.endswith('#Create'):
id_str = id_str.split('#Create')[0]
elif id_str.endswith('#delete'):
id_str = id_str.split('#delete')[0]
return id_str