Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

NodeBB

  1. Home
  2. uncategorized
  3. API's with emoji reactions reject invalid emojis.

API's with emoji reactions reject invalid emojis.

Scheduled Pinned Locked Moved uncategorized
7 Posts 2 Posters 5 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • volpeon@icy.wyvern.ripV This user is from outside of this forum
    volpeon@icy.wyvern.ripV This user is from outside of this forum
    volpeon@icy.wyvern.rip
    wrote last edited by volpeon@icy.wyvern.rip
    #1

    API's with emoji reactions reject invalid emojis. The problem is that what constitutes a valid emoji changes with Unicode releases, and so that's *yet another fucking point where emojis will break*.

    kopper@not-brain.d.on-t.workK volpeon@icy.wyvern.ripV 2 Replies Last reply
    0
    • volpeon@icy.wyvern.ripV volpeon@icy.wyvern.rip

      API's with emoji reactions reject invalid emojis. The problem is that what constitutes a valid emoji changes with Unicode releases, and so that's *yet another fucking point where emojis will break*.

      kopper@not-brain.d.on-t.workK This user is from outside of this forum
      kopper@not-brain.d.on-t.workK This user is from outside of this forum
      kopper@not-brain.d.on-t.work
      wrote last edited by
      #2
      @volpeon in fedi at least, what an emoji is additionally differs between software, unrelated to unicode releases
      1 Reply Last reply
      0
      • volpeon@icy.wyvern.ripV volpeon@icy.wyvern.rip

        API's with emoji reactions reject invalid emojis. The problem is that what constitutes a valid emoji changes with Unicode releases, and so that's *yet another fucking point where emojis will break*.

        volpeon@icy.wyvern.ripV This user is from outside of this forum
        volpeon@icy.wyvern.ripV This user is from outside of this forum
        volpeon@icy.wyvern.rip
        wrote last edited by volpeon@icy.wyvern.rip
        #3

        The thought process is probably "but what if someone sends an 'a'", but that's a mistake. The server doesn't need to care. Just let the client handle it because that's where emoji compatibility matters. Some systems can handle Unicode 17, others only Unicode 15. An 'a' is virtually the same as an incompatible emoji. The client must handle this case anyway.

        volpeon@icy.wyvern.ripV 1 Reply Last reply
        0
        • volpeon@icy.wyvern.ripV volpeon@icy.wyvern.rip

          The thought process is probably "but what if someone sends an 'a'", but that's a mistake. The server doesn't need to care. Just let the client handle it because that's where emoji compatibility matters. Some systems can handle Unicode 17, others only Unicode 15. An 'a' is virtually the same as an incompatible emoji. The client must handle this case anyway.

          volpeon@icy.wyvern.ripV This user is from outside of this forum
          volpeon@icy.wyvern.ripV This user is from outside of this forum
          volpeon@icy.wyvern.rip
          wrote last edited by volpeon@icy.wyvern.rip
          #4

          Just think about it for 5 seconds. Why does it matter if the fucking server can understand an emoji? It's just a string, like any other text. If you didn't have a font for Kanji installed on the server, would you reject such characters as well?

          volpeon@icy.wyvern.ripV 1 Reply Last reply
          0
          • volpeon@icy.wyvern.ripV volpeon@icy.wyvern.rip

            Just think about it for 5 seconds. Why does it matter if the fucking server can understand an emoji? It's just a string, like any other text. If you didn't have a font for Kanji installed on the server, would you reject such characters as well?

            volpeon@icy.wyvern.ripV This user is from outside of this forum
            volpeon@icy.wyvern.ripV This user is from outside of this forum
            volpeon@icy.wyvern.rip
            wrote last edited by volpeon@icy.wyvern.rip
            #5

            You know what would be robust? Let the server take any string and maybe cap it at, idk, 20 characters. Let the clients detect what Unicode version is supported, and then add some feature negotiation where the client tells the server, so the server can finally do the filtering when the client requests data. And if Unicode version detection isn't possible (because there is no proper API for this), then just ship your own font with a known supported version and report that.

            volpeon@icy.wyvern.ripV 1 Reply Last reply
            0
            • volpeon@icy.wyvern.ripV volpeon@icy.wyvern.rip

              You know what would be robust? Let the server take any string and maybe cap it at, idk, 20 characters. Let the clients detect what Unicode version is supported, and then add some feature negotiation where the client tells the server, so the server can finally do the filtering when the client requests data. And if Unicode version detection isn't possible (because there is no proper API for this), then just ship your own font with a known supported version and report that.

              volpeon@icy.wyvern.ripV This user is from outside of this forum
              volpeon@icy.wyvern.ripV This user is from outside of this forum
              volpeon@icy.wyvern.rip
              wrote last edited by
              #6

              Hell, you could leave out the negotiation part and let the client drop unsupported data. Whatever floats your boat.

              volpeon@icy.wyvern.ripV 1 Reply Last reply
              0
              • volpeon@icy.wyvern.ripV volpeon@icy.wyvern.rip

                Hell, you could leave out the negotiation part and let the client drop unsupported data. Whatever floats your boat.

                volpeon@icy.wyvern.ripV This user is from outside of this forum
                volpeon@icy.wyvern.ripV This user is from outside of this forum
                volpeon@icy.wyvern.rip
                wrote last edited by
                #7

                An unplanned rant, but this situation really annoys me. ​​

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Login or register to search.
                Powered by NodeBB Contributors
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups