summary refs log tree commit diff
diff options
context:
space:
mode:
-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