compdemocracy / polis

:milky_way: Open Source AI for large scale open ended feedback
https://pol.is
GNU Affero General Public License v3.0
719 stars 170 forks source link

changed knowledgeBase.js, removed react-easy-emoji redundancy #1719

Open deej-tsn opened 9 months ago

deej-tsn commented 9 months ago

Original issue resulted from using react-easy-emoji.

react-easy-emoji uses twemoji and more relevantly the MaxCDN ( which originally hosted the twemoji images). MaxCDN no longer host those images hence the error.

Since the code already is passing emojis as hardcoded text, the end user is downloading the emojis and so the react-easy-emoji isnt necessary. I just removed it from the knowledgeBase component and left the passed in emoji as plaintext which should work across all browsers.

ballPointPenguin commented 8 months ago

It looks like react-easy-emoji updated their default CDN so I will try to simply update that package and see if it works

https://github.com/appfigures/react-easy-emoji/blob/master/CHANGELOG.md