|
@@ -387,6 +387,8 @@ function pleroma_disable_registrations {
|
387
|
387
|
}
|
388
|
388
|
|
389
|
389
|
function pleroma_add_emoji {
|
|
390
|
+ emoji_resolution='64x64'
|
|
391
|
+
|
390
|
392
|
data=$(tempfile 2>/dev/null)
|
391
|
393
|
trap "rm -f $data" 0 1 2 5 15
|
392
|
394
|
dialog --backtitle $"Freedombone Control Panel" \
|
|
@@ -444,7 +446,7 @@ function pleroma_add_emoji {
|
444
|
446
|
fi
|
445
|
447
|
|
446
|
448
|
if [[ "$image_url" == *'.jpg' || "$image_url" == *'.jpeg' || "$image_url" == *'.gif' ]]; then
|
447
|
|
- convert $image_filename -resize 64x64 $PLEROMA_DIR/custom_emoji/${shortcode}.png
|
|
449
|
+ convert $image_filename -resize $emoji_resolution $PLEROMA_DIR/custom_emoji/${shortcode}.png
|
448
|
450
|
if [ ! -f $PLEROMA_DIR/custom_emoji/${shortcode}.png ]; then
|
449
|
451
|
dialog --title $"Add Custom Emoji" \
|
450
|
452
|
--msgbox $"Unable to convert empji image to png format" 6 60
|
|
@@ -456,6 +458,8 @@ function pleroma_add_emoji {
|
456
|
458
|
|
457
|
459
|
image_extension='png'
|
458
|
460
|
image_filename=$PLEROMA_DIR/custom_emoji/${shortcode}.${image_extension}
|
|
461
|
+ else
|
|
462
|
+ convert $image_filename -resize $emoji_resolution $image_filename
|
459
|
463
|
fi
|
460
|
464
|
|
461
|
465
|
if ! grep -q "${shortcode}," $image_filename; then
|