pokemontrades / flairhq

A small project to allow easy adding of flair applications for subreddits (focusing initially on /r/pokemontrades) and easy moderation for moderators.
Apache License 2.0
11 stars 9 forks source link

Support emojis in flair text #658

Closed pkmnbumba closed 4 years ago

pkmnbumba commented 4 years ago

646

Noting that we opted to keep the css_class for old reddit support. Doing this allowed us to keep everything the same for applying for flair.

SnowPhoenix commented 4 years ago

Noting that we opted to keep the css_class for old reddit support. Doing this allowed us to keep everything the same for applying for flair.

I think people wanted to keep it for other reasons as well, but just to make a quick note in case there were any misunderstandings, a CSS class is not necessary for old Reddit support. Old Reddit will include emoji, and they can be manipulated via CSS there, but only if a CSS class is not present. (My original implementation was going to remove CSS classes, but it does make things noticeably more complicated as a function for decoding the emoji codes is also needed in that case.)

Edit: Also I just noticed this code doesn't support emoji for /r/SVExchange?

Raia commented 4 years ago

I pushed some commits to fix some bugs:

Outstanding bugs:

I don't consider either of the above to be blockers for deploying just so that we can reopen the sub, but we should get them fixed eventually. I think we should split the SVEx stuff into a separate PR so we can get this going for now.

Raia commented 4 years ago

Going to separate out some of the things from here and open a new PR.