Hi there, I’m trying to figure out the best way to clean up a bunch of emoji codes from my Drupal forum import (many of which were created when they were still known as “smiley” sets and “emoji” wasn’t even in our vocabulary yet).
I could do it in the import script (haven’t done a final production migration yet), but that would require adding about 20 additional gsub()
calls to the already complex and slowish preprocess_posts()
function of the importer.
I was planning on a simple find/replace with rake posts:remap
after the final import, but each of the 20 replacements will take about an hour to run and also the remap function appears to be quite broken.
I looked into the Admin > Customize > Emoji interface, but it won’t let me use emoji codes like :THUMBS-UP:
with a dash, it turns dashes into underscores.
Any other better options? Thanks!