|
@@ -228,6 +228,8 @@ function reconfigure_postactiv {
|
228
|
228
|
}
|
229
|
229
|
|
230
|
230
|
function postactiv_set_background_image {
|
|
231
|
+ POSTACTIV_DOMAIN_NAME=$(get_completion_param "postactiv domain")
|
|
232
|
+
|
231
|
233
|
data=$(tempfile 2>/dev/null)
|
232
|
234
|
trap "rm -f $data" 0 1 2 5 15
|
233
|
235
|
dialog --title $"PostActiv" \
|
|
@@ -240,9 +242,11 @@ function postactiv_set_background_image {
|
240
|
242
|
if [ ${#temp_background} -gt 0 ]; then
|
241
|
243
|
POSTACTIV_BACKGROUND_IMAGE_URL="$temp_background"
|
242
|
244
|
write_config_param "POSTACTIV_BACKGROUND_IMAGE_URL" "$POSTACTIV_BACKGROUND_IMAGE_URL"
|
243
|
|
- pleroma_set_background_image_from_url "$POSTACTIV_DOMAIN_NAME" "$POSTACTIV_BACKGROUND_IMAGE_URL" "$POSTACTIV_TITLE"
|
244
|
|
- dialog --title $"Set PostActiv background" \
|
245
|
|
- --msgbox $"The background image has been set" 6 60
|
|
245
|
+
|
|
246
|
+ if [[ $(pleroma_set_background_image_from_url "$POSTACTIV_DOMAIN_NAME" "$POSTACTIV_BACKGROUND_IMAGE_URL" "$POSTACTIV_TITLE" | tail -n 1) == "0" ]]; then
|
|
247
|
+ dialog --title $"Set PostActiv background" \
|
|
248
|
+ --msgbox $"The background image has been set" 6 60
|
|
249
|
+ fi
|
246
|
250
|
fi
|
247
|
251
|
;;
|
248
|
252
|
esac
|