From 270148db973a56692e16df14b59ad759a26c52a3 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 11 Nov 2017 11:33:36 +0000 Subject: [PATCH] Remove original emoji after conversion --- src/freedombone-app-pleroma | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/freedombone-app-pleroma b/src/freedombone-app-pleroma index 5999d858..d99ad948 100755 --- a/src/freedombone-app-pleroma +++ b/src/freedombone-app-pleroma @@ -450,6 +450,10 @@ function pleroma_add_emoji { --msgbox $"Unable to convert empji image to png format" 6 60 return fi + + # remove the original + rm $image_filename + image_extension='png' image_filename=$PLEROMA_DIR/custom_emoji/${shortcode}.${image_extension} fi