mirror of https://gitlab.com/bashrc2/epicyon
Index formatting of post url
parent
90471ccb26
commit
5313b286c6
9
posts.py
9
posts.py
|
@ -4882,11 +4882,12 @@ def _create_box_items(base_dir: str,
|
|||
if full_post_filename:
|
||||
# has the post been rejected?
|
||||
if os.path.isfile(full_post_filename + '.reject'):
|
||||
print('REJECT: rejected post in timeline ' +
|
||||
boxname + ' ' + post_url + ' ' +
|
||||
full_post_filename)
|
||||
remove_post_from_index(post_url + '.json', False,
|
||||
post_url2 = post_url.replace('/', '#') + '.json'
|
||||
remove_post_from_index(post_url2, False,
|
||||
index_filename)
|
||||
print('REJECT: rejected post in timeline ' +
|
||||
boxname + ' ' + post_url2 + ' ' +
|
||||
full_post_filename)
|
||||
continue
|
||||
|
||||
if _add_post_to_timeline(full_post_filename, boxname,
|
||||
|
|
1
utils.py
1
utils.py
|
@ -3582,6 +3582,7 @@ def reject_post_id(base_dir: str, nickname: str, domain: str,
|
|||
# if the post is in the inbox index then remove it
|
||||
index_file = \
|
||||
acct_dir(base_dir, nickname, domain) + '/inbox.index'
|
||||
post_url = post_url.replace('/', '#')
|
||||
remove_post_from_index(post_url + '.json', debug, index_file)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue