summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2025-12-22 18:12:22 +0000
committerJune McEnroe <june@causal.agency>2025-12-22 18:16:14 +0000
commit0f2af68435618600f199ef63980e04d21e3589b8 (patch)
treebaaa8108ecbd126250e5e313c6ef41f096398b7d
parentAdd Rose/House (diff)
downloadsrc-0f2af68435618600f199ef63980e04d21e3589b8.tar.gz
src-0f2af68435618600f199ef63980e04d21e3589b8.zip
Dehtml pronoun fields
I forgot I wrote that...
-rw-r--r--etc/pronouns/bot.sh3
1 files changed, 2 insertions, 1 deletions
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