Try different path within emoji.txt
This commit is contained in:
parent
a943e8e976
commit
707d4a1c72
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue