This commit is contained in:
Bob Mottram 2017-11-11 12:45:31 +00:00
parent a39cb8d514
commit b4bf75288b
1 changed files with 1 additions and 1 deletions

View File

@ -462,7 +462,7 @@ function pleroma_add_emoji {
convert $image_filename -resize $emoji_resolution $image_filename
fi
if ! grep -q "${shortcode}," $image_filename; then
if ! grep -q "${shortcode}," $PLEROMA_DIR/config/emoji.txt; then
echo "${shortcode}, /emoji/${shortcode}.${image_extension}" >> $PLEROMA_DIR/config/emoji.txt
else
sed -i "s|${shortcode},.*|${shortcode}, /emoji/${shortcode}.${image_extension}|g" $PLEROMA_DIR/config/emoji.txt