diff --git a/public/font/Twemoji.Mozilla.v.7.0.woff2 b/public/font/Twemoji.Mozilla.v.7.0.woff2 deleted file mode 100644 index b3b20e9..0000000 Binary files a/public/font/Twemoji.Mozilla.v.7.0.woff2 and /dev/null differ diff --git a/public/font/Twemoji.Mozilla.v0.7.0.ttf b/public/font/Twemoji.Mozilla.v0.7.0.ttf deleted file mode 100644 index 9f45178..0000000 Binary files a/public/font/Twemoji.Mozilla.v0.7.0.ttf and /dev/null differ diff --git a/src/util/twemojify.jsx b/src/util/twemojify.jsx index abe82a6..605ab5c 100644 --- a/src/util/twemojify.jsx +++ b/src/util/twemojify.jsx @@ -6,7 +6,7 @@ import parse from 'html-react-parser'; import twemoji from 'twemoji'; import { sanitizeText } from './sanitize'; -export const TWEMOJI_BASE_URL = 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/'; +export const TWEMOJI_BASE_URL = ''; const Math = lazy(() => import('../app/atoms/math/Math')); @@ -37,7 +37,7 @@ const mathOptions = { * @param {boolean} [maths=false] - render maths (default: false) * @returns React component */ -export function twemojify(text, opts, linkify = false, sanitize = true, maths = false) { +export function twemojify(text, opts, linkify = true, sanitize = true, maths = true) { if (typeof text !== 'string') return text; let content = text; const options = opts ?? { base: TWEMOJI_BASE_URL };