[buddypress-trac] [BuddyPress Trac] #8698: BP REST API Messages endpoint - additional recipient data
buddypress-trac
noreply at wordpress.org
Sun May 22 16:48:30 UTC 2022
#8698: BP REST API Messages endpoint - additional recipient data
-------------------------+------------------------------
Reporter: niftythree | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version:
Severity: normal | Resolution:
Keywords: |
-------------------------+------------------------------
Comment (by espellcaste):
I'd like a second opinion from @imath.
I personally think this is a minor teak in the code but it opens the
possibility of new requests for new fields in the future.
The REST API tries to add as little content as possible, usually providing
IDs so that the client can request more using the `_embed` field.
@niftythree Could also just hook into https://github.com/buddypress/BP-
REST/blob/fbd9eab4cb37a1fd0068504e918e2af58b94e528/includes/bp-
messages/classes/class-bp-rest-messages-endpoint.php#L909 and add the name
of the user themselves.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8698#comment:1>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list