diff options
| author | June McEnroe <june@causal.agency> | 2025-12-22 18:12:22 +0000 |
|---|---|---|
| committer | June McEnroe <june@causal.agency> | 2025-12-22 18:16:14 +0000 |
| commit | 0f2af68435618600f199ef63980e04d21e3589b8 (patch) | |
| tree | baaa8108ecbd126250e5e313c6ef41f096398b7d /etc | |
| parent | Add Rose/House (diff) | |
| download | src-0f2af68435618600f199ef63980e04d21e3589b8.tar.gz src-0f2af68435618600f199ef63980e04d21e3589b8.zip | |
Dehtml pronoun fields
I forgot I wrote that...
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/pronouns/bot.sh | 3 |
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 |