Mastodon: Emojis not displaying on foreign toots

Created on 17 Apr 2017  路  6Comments  路  Source: tootsuite/mastodon

Example toot : https://mstdn.io/@angristan/476554

From my instance :
screenshot_17-04-2017_b hkwgl8p_

From his :
screenshot_17-04-2017_b lpmjvno9

And the emoji does not even show up in the HTML :
screenshot_17-04-2017_b zh7v448o

It's not a problem with CSP, and it happens since 1.2.

As you can see in my example toot, it happens with some instances, but not all.


  • [x] I searched or browsed the repo鈥檚 other issues to ensure this is not a duplicate.
  • [x] This bug happens on a tagged release and not on master (If you're a user, don't worry about this).
bug ui

Most helpful comment

As mentioned above, emojis aren't in the HTML content, I've also checked and it's not even returned by the API (see screenshot):

export USER_AGENT="Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:45.0) Gecko/20100101 Firefox/45.0" TOKEN=YOUR_TOKEN
curl -s -X 'GET' \
    -H "User-Agent: ${USER_AGENT}" \
    -H "Authorization: Bearer ${TOKEN}" \
    --url 'https://mastodon.xyz/api/v1/statuses/900842' | python -c "import sys, json; print(json.dumps(json.load(sys.stdin), indent=4))"

Emojis API response

All 6 comments

I confirme.

Another example:
From my instance:
170417181603687
And from his:
170417181547254

And same, no emoji in the HTML:
170417181924989

It affects also the "internal" stream.

As mentioned above, emojis aren't in the HTML content, I've also checked and it's not even returned by the API (see screenshot):

export USER_AGENT="Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:45.0) Gecko/20100101 Firefox/45.0" TOKEN=YOUR_TOKEN
curl -s -X 'GET' \
    -H "User-Agent: ${USER_AGENT}" \
    -H "Authorization: Bearer ${TOKEN}" \
    --url 'https://mastodon.xyz/api/v1/statuses/900842' | python -c "import sys, json; print(json.dumps(json.load(sys.stdin), indent=4))"

Emojis API response

I think this might have been solved by #1988鈥攃an someone confirm?

I'm on latest code. You can try here : https://social.targaryen.house/@wonderfall/809705
And switch between instances. It seems emojis are sent and are in the HTML content, but other instances can't do that. However, someone on 1.2 managed to send me some, and they are displaying on my instance, but not totally. Check the link.

Should be fixed now.

Was this page helpful?
0 / 5 - 0 ratings