aboutsummaryrefslogtreecommitdiffstats
path: root/rasis.py
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2025-04-14 03:54:30 -0700
committerPinapelz <yukais@pinapelz.com>2025-04-14 03:54:30 -0700
commit065a6a821ba195a9a61d200b46b8a177023858f8 (patch)
tree443ad5c43daf613c6b4e1f98a89fdd05f974311a /rasis.py
parentbfa4bc4799f3dfb4c49fd069741af2b54f29fa02 (diff)
sanitize content before posting
Diffstat (limited to 'rasis.py')
-rw-r--r--rasis.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/rasis.py b/rasis.py
index b719527..b3a6e19 100644
--- a/rasis.py
+++ b/rasis.py
@@ -99,4 +99,5 @@ if __name__ == "__main__":
queued_posts = generate_queued_posts()
for post in queued_posts:
content = generate_post_content(post)
- post_on_fedi(post)
+ cleaned = content.encode("utf-8", "replace").decode("utf-8")
+ post_on_fedi(cleaned)
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage