Closed sudofox closed 2 years ago
This way, we can have the DSi style emoji on the site while still having the right 'equivalent' ones show up on OpenGraph, sharing, Google, and so on.
Right now I switched it to this:
<?php // new version of stringToEmoji to use actual globally-supported emoji substitutes function stringToEmoji ($string) { $nintendoPUA = [ '//', '//', '//', '//', '//', '//', '//', '//', '//', '//', '//', '//', '//', '//', '//', '//', '//', '//', '//', '//', '//', '//', '//', '//', '//', '//', '//', '//', '//', '//', '//' ]; $replacementCharacters = ['😃', '😠', '😔', '😑', '☀', '☁', '☔', '⛄', '✉', '📱', '⏰', 'Ⓐ', 'Ⓑ', 'Ⓧ', 'Ⓨ', 'Ⓛ', 'Ⓡ', '➕', '♠', '♦', '♥', '♣', '❗', '❓', '➡', '⬅', '⬆', '⬇', '✕', '🐸' ]; return preg_replace($nintendoPUA, $replacementCharacters, $string); }
replacing the other characters with the Sudofont glyphs will restore the DSi symbols to Theatre whilst making them show up properly everywhere else.
This way, we can have the DSi style emoji on the site while still having the right 'equivalent' ones show up on OpenGraph, sharing, Google, and so on.
Right now I switched it to this:
replacing the other characters with the Sudofont glyphs will restore the DSi symbols to Theatre whilst making them show up properly everywhere else.