From 0f2af68435618600f199ef63980e04d21e3589b8 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Mon, 22 Dec 2025 18:12:22 +0000 Subject: Dehtml pronoun fields I forgot I wrote that... --- etc/pronouns/bot.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/etc/pronouns/bot.sh b/etc/pronouns/bot.sh index aa613bd9..c83ee347 100644 --- a/etc/pronouns/bot.sh +++ b/etc/pronouns/bot.sh @@ -46,11 +46,12 @@ for follower_id in $followers 112284333737697665; do fi old_pronouns=$(cat $follower_id) if [ "${pronouns}" != "${old_pronouns}" ]; then + text=$(printf '%s' "${pronouns}" | dehtml) curl -Ss -X POST \ -H "Authorization: Bearer ${access_token}" \ -F visibility=unlisted \ --form-string \ - "status=@${username} has changed pronouns to: ${pronouns}" \ + "status=@${username} has changed pronouns to: ${text}" \ ${Instance}/api/v1/statuses >/dev/null printf '%s' "${pronouns}" >$follower_id fi -- cgit 1.4.1