Replace later

main
bashrc 2026-07-27 10:57:08 +01:00
parent e4b0ce6714
commit 94b63ae3eb
1 changed files with 3 additions and 3 deletions

View File

@ -1859,6 +1859,9 @@ def create_post_base(base_dir: str,
"""
content = remove_invalid_chars(content)
subject = add_auto_cw(base_dir, nickname, domain, subject, content,
auto_cw_cache)
# 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
@ -1867,9 +1870,6 @@ def create_post_base(base_dir: str,
if is_a_file(replace_dashes_filename):
content = content.replace(' - ', '')
subject = add_auto_cw(base_dir, nickname, domain, subject, content,
auto_cw_cache)
if nickname != 'news':
mentioned_recipients = \
get_mentioned_people(base_dir, http_prefix, content, domain, False)