Try different path within emoji.txt

This commit is contained in:
Bob Mottram 2017-11-11 11:51:03 +00:00
parent a943e8e976
commit 707d4a1c72
1 changed files with 2 additions and 2 deletions

View File

@ -463,9 +463,9 @@ function pleroma_add_emoji {
fi
if ! grep -q "${shortcode}," $image_filename; then
echo "${shortcode}, ${image_filename}" >> $PLEROMA_DIR/config/emoji.txt
echo "${shortcode}, /custom_emoji/${shortcode}.${image_extension}" >> $PLEROMA_DIR/config/emoji.txt
else
sed -i "s|${shortcode},.*|${shortcode}, ${image_filename}|g" $PLEROMA_DIR/config/emoji.txt
sed -i "s|${shortcode},.*|${shortcode}, /custom_emoji/${shortcode}.${image_extension}|g" $PLEROMA_DIR/config/emoji.txt
fi
chown -R pleroma:pleroma $PLEROMA_DIR