test background change

This commit is contained in:
Bob Mottram 2017-04-03 22:47:58 +01:00
parent 8eebb4f489
commit 417a6fed14
1 changed files with 3 additions and 4 deletions

View File

@ -240,10 +240,9 @@ function postactiv_set_background_image {
if [ ${#temp_background} -gt 0 ]; then
POSTACTIV_BACKGROUND_IMAGE_URL="$temp_background"
write_config_param "POSTACTIV_BACKGROUND_IMAGE_URL" "$POSTACTIV_BACKGROUND_IMAGE_URL"
if [[ $(pleroma_set_background_image_from_url "$POSTACTIV_DOMAIN_NAME" "$POSTACTIV_BACKGROUND_IMAGE_URL" "$POSTACTIV_TITLE" | tail -n 1) == "0" ]]; then
dialog --title $"Set PostActiv background" \
--msgbox $"The background image has been set" 6 60
fi
pleroma_set_background_image_from_url "$POSTACTIV_DOMAIN_NAME" "$POSTACTIV_BACKGROUND_IMAGE_URL" "$POSTACTIV_TITLE"
dialog --title $"Set PostActiv background" \
--msgbox $"The background image has been set" 6 60
fi
;;
esac