A few more changes, added the ability to show the client in posts.
This commit is contained in:
@ -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" \
|
||||
|
Reference in New Issue
Block a user