A few more changes, added the ability to show the client in posts.

This commit is contained in:
Storm Dragon
2024-05-12 17:55:17 -04:00
parent a6849cceea
commit 05f236df25
2 changed files with 9 additions and 0 deletions

View File

@ -128,6 +128,13 @@ post_status() {
local statusText="$*"
statusVisibility="${statusVisibility:-public}"
statusContent_type="${statusContent_type:-text/markdown}"
if [[ "${showClient}" == "true" ]]; then
if [[ "${statusContent_type}" == "text/markdown" ]]; then
statusText+=$'\n'$'\n'"[Posted from Ratatoskr](https://git.stormux.org/storm/ratatoskr)"
else
statusText+=$'\n'$'\n'"Posted from Ratatoskr: https://git.stormux.org/storm/ratatoskr"
fi
fi
local statusJson="$(jq -n --arg status "$statusText" \
--arg spoiler_text "$statusSpoiler_text" \
--arg visibility "$statusVisibility" \