Skip to content

Add new emojis from jdecked/twemoji 15.0#28404

Merged
Gargron merged 1 commit intomastodon:mainfrom
TheEssem:feature/twemoji-v15
Jan 11, 2024
Merged

Add new emojis from jdecked/twemoji 15.0#28404
Gargron merged 1 commit intomastodon:mainfrom
TheEssem:feature/twemoji-v15

Conversation

@TheEssem
Copy link
Copy Markdown
Contributor

@TheEssem TheEssem commented Dec 16, 2023

Partially fixes #25736. This adds the new emojis from v15 of jdecked's fork of Twemoji, which many other applications/services have been migrating to as the upstream project has been abandoned.

This only applies to the renderer, so no shortcodes or changes to the emoji picker as dealing with emoji-mart is a whole other can of worms.

Note that it may be needed to run bundle exec rails assets:clobber when updating, as the prevaled compressed emoji data doesn't get regenerated when precompiling the assets.

@Gargron Gargron added this pull request to the merge queue Jan 11, 2024
Merged via the queue into mastodon:main with commit b6e3535 Jan 11, 2024
renchap added a commit to renchap/mastodon that referenced this pull request Jan 11, 2024
This is a follow up on mastodon#28404

In the PR above, the emoji data has been changed. But `emojii_compressed.js` is using `babel-preval`, so it is executed when processed with Babel, and then Babel will cache the resulting code.

This causes the frontend to no longer load after deploying the change, because Babel did not detect any change in `emoji_compressed.js` (the real file), so it re-used it from its cache, but the actuel content that needs to be consumed by Webpack and appear in the final bundle is different (it contains the new emoji data).

Adding this comment will change the checksum for `emoji_compressed.js`, which should invalidate Babel's cache and force the file to be executed again on the next build.
renchap added a commit to renchap/mastodon that referenced this pull request Jan 11, 2024
This is a follow up on mastodon#28404

In the PR above, the emoji data has been changed. But `emojii_compressed.js` is using `babel-preval`, so it is executed when processed with Babel, and then Babel will cache the resulting code.

This causes the frontend to no longer load after deploying the change, because Babel did not detect any change in `emoji_compressed.js` (the real file), so it re-used it from its cache, but the actuel content that needs to be consumed by Webpack and appear in the final bundle is different (it contains the new emoji data).

Adding this comment will change the checksum for `emoji_compressed.js`, which should invalidate Babel's cache and force the file to be executed again on the next build.
mjankowski pushed a commit to mjankowski/mastodon that referenced this pull request Jan 15, 2024
@TheEssem TheEssem deleted the feature/twemoji-v15 branch February 25, 2024 21:33
noellabo pushed a commit to fedibird/mastodon that referenced this pull request Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add unicode 15 support

3 participants