From 065a6a821ba195a9a61d200b46b8a177023858f8 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Mon, 14 Apr 2025 03:54:30 -0700 Subject: sanitize content before posting --- rasis.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3