Commit graph

22 commits

Author SHA1 Message Date
Claire
fbb4de3dbc
Fix infinite loop in emoji replacement code () 2023-04-21 18:08:28 +02:00
Claire
37886c28da
Fix characters being emojified even when using Variation Selector 15 (text) () 2023-04-20 16:43:55 +02:00
Nick Schonning
a425915ce7
HTML string attributes set as booleans () 2023-04-04 16:33:33 +02:00
Claire
585cc1a604
Remove use of DOMParser in front-end emoji rewriting code ()
* Add jstest for node ordering in emojify

* Remove use of DOMParser in front-end emoji rewriting code
2022-11-17 11:24:59 +01:00
Claire
ccbca50a25
Fix nodes order being sometimes mangled when rewriting emoji ()
* Fix front-end emoji tests

* Fix nodes order being sometimes mangled when rewriting emoji
2022-11-14 22:14:55 +01:00
Claire
625e086996
Fix emoji substitution not applying only to text nodes in Web UI ()
Signed-off-by: Claire <claire.github-309c@sitedethib.com>

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
2022-11-14 20:26:03 +01:00
Claire
e78d06eecf
Add border to 🚲 emoji () 2021-04-13 23:43:51 +02:00
Claire
a8139ab016
Add borders to 📱 and 📲 emojis () 2021-03-01 21:22:54 +01:00
ThibG
4c45b43cb8
Change how CDN_HOST is passed down to make assets build reproducible ()
* Change how CDN_HOST is passed down to make assets build reproducible

* Change webpacker/webpack configuration to dynamically load publicPath based on meta header

* Fix embedded layout missing the cdn-host meta header
2020-10-13 01:19:35 +02:00
ThibG
91eecd1b3c
Add border around 🕺 emoji ()
Fixes 
2020-09-10 19:08:03 +02:00
ThibG
f0b6ddd979
Add border around 🐞 emoji () 2020-08-31 23:30:27 +02:00
fuyu
b1484cf3ce
Fixed emoji detection problem to append border ()
* Fixed emoji detection problem to append border

* Add tests

* Add missing semicolon

* Fixed wrong result when includes different variation selector

* Add missing semicolon

* Remove grapheme-splitter and Change emoji list to array from string

* Update comment

* Remove spaces

Co-authored-by: ThibG <thib@sitedethib.com>
2020-06-10 21:56:14 +02:00
ThibG
cc6b8a9615
Fix WebUI crash when processing accounts before page is loaded () 2020-06-09 20:53:20 +02:00
ThibG
db319c0fdc
Improve rendering of emoji which do not contrast with background ()
* Refactor list of emoji requiring added outlines so that it can be theme-specific

* Split inaccessible emoji to emoji requiring an outline and ones that can be inverted

* Drop the “silouhettes” from black emoji as they seem to have changed color

* Add inaccessible emojis list for the light theme

* Use bordered emoji variant instead of unreliable CSS
2020-06-09 10:28:23 +02:00
Eugen Rochko
0d2b60ab8b
Fix emoji search not showing custom emoji when none are uncategorized ()
Fix 
2019-09-23 00:48:43 +02:00
ThibG
7de8c51873 Play animated custom emoji on hover ()
* Play animated custom emoji on hover in status

* Play animated custom emoji on hover in display names

* Play animated custom emoji on hover in bios/bio fields

* Add support for animation on hover on public pages emojis too

* Fix tests

* Code style cleanup
2019-07-21 18:10:40 +02:00
Eugen Rochko
e64e6a03dd
Add categories for custom emojis ()
Fix 
2019-06-28 15:54:10 +02:00
M Somerville
a060beee72 Skip VS15 (Emoji textual presentation). ()
Mastodon converts all Emoji to images, whether they have a VS15 after
them or not, but leaves the VS15 in the string, which is displayed as
a black box in Safari.
2018-09-01 19:42:02 +02:00
MIYAGI Hikaru
782224c991 Avoid emojifying on invisible text () 2017-11-07 14:48:13 +01:00
Nolan Lawson
60f962eedc Refactor initial state: auto_play_gif () 2017-11-01 06:58:07 +09:00
Eugen Rochko
45682f876d Make auto-play GIFs preference affect custom emojis in web UI () 2017-10-07 02:38:52 +02:00
Nolan Lawson
fd7f0732fe Compress and combine emoji data () 2017-10-06 03:42:34 +02:00
Renamed from app/javascript/mastodon/emoji.js (Browse further)