Skip to:
Content

BuddyPress.org

#8928 closed defect (bug) (fixed)

Emoji's being stripped from message subject in REST API

Reported by: niftythree's profile niftythree Owned by: imath's profile imath
Milestone: 12.0.0 Priority: normal
Severity: normal Version:
Component: REST API Keywords: has-patch
Cc:

Description

Hi there,

We've been using the BuddyPress REST API through our app to provide messaging for our users, and it's been working great so far.

One peculiar thing we've picked up on recently, is that if there are emojis in the subject line of a message, it does not get delivered by the REST API (i.e. the emojis are removed).

In the attached image ("subject 1") from the website, Jone has received a message from Ana with emojis in the subject, and it appears correctly on the website. However, if we access Jone's inbox using the BuddyPress REST API, we can see that the emojis have been stripped out from the subject field.

Is there a configuration or setting that may be causing this, or would this be a bug?

Thanks.

Attachments (2)

Subject 1.png (30.7 KB) - added by niftythree 16 months ago.
Subject 2.png (133.6 KB) - added by niftythree 16 months ago.

Download all attachments as: .zip

Change History (5)

#1 @imath
16 months ago

  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to 12.0.0

This ticket was mentioned in PR #123 on buddypress/buddypress by @imath.


16 months ago
#2

  • Keywords has-patch added; needs-patch removed
  • Filter subject, excerpt & content template functions using the wp_staticize_emoji callback.
  • Update some Nouveau templates/ajax function to make sure these WP Emojis are rightly rendered.

Trac ticket: https://buddypress.trac.wordpress.org/ticket/8928

#3 @imath
16 months ago

  • Owner set to imath
  • Resolution set to fixed
  • Status changed from new to closed

In 13510:

Messages: use WP Emojis in subject, excerpt & content

  • Add filters to subject, excerpt & content template functions using the wp_staticize_emoji callback.
  • Update some Nouveau templates/ajax functions to make sure these WP Emojis are rightly rendered.

Props niftythree

Fixes #8928
Closes https://github.com/buddypress/buddypress/pull/123

Note: See TracTickets for help on using tickets.