main
Bob Mottram 2022-03-12 14:50:47 +00:00
parent ec3b9cacf8
commit 8c328849d4
2 changed files with 2 additions and 1 deletions

View File

@ -9864,7 +9864,6 @@ class PubServer(BaseHTTPRequestHandler):
self._404()
return
delete_url = delete_url.replace('/', '#')
delete_str = \
html_confirm_delete(self.server.css_cache,
self.server.recent_posts_cache,

View File

@ -1383,6 +1383,8 @@ def locate_post(base_dir: str, nickname: str, domain: str,
account_dir = acct_dir(base_dir, nickname, domain) + '/'
for box_name in boxes:
post_filename = account_dir + box_name + '/' + post_url
if box_name == 'outbox':
print('locate_post filename: ' + post_filename)
if os.path.isfile(post_filename):
return post_filename