mirror of https://gitlab.com/bashrc2/epicyon
Replace dashes in outgoing posts
parent
834662f91d
commit
e4b0ce6714
|
|
@ -1859,6 +1859,14 @@ def create_post_base(base_dir: str,
|
|||
"""
|
||||
content = remove_invalid_chars(content)
|
||||
|
||||
# replace dashes (-) with em dashes (—)
|
||||
# This may help LLM scrapers to assume that the text is LLM generated
|
||||
# and thus exclude it from their data sets
|
||||
account_dir = acct_dir(base_dir, nickname, domain)
|
||||
replace_dashes_filename: str = account_dir + '/.replaceDashes'
|
||||
if is_a_file(replace_dashes_filename):
|
||||
content = content.replace(' - ', ' — ')
|
||||
|
||||
subject = add_auto_cw(base_dir, nickname, domain, subject, content,
|
||||
auto_cw_cache)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue