has finished an implementation on the Gene42 side that can be found here: https://github.com/Gene42/phenotips/pull/2
Are you planning to make a pull request for PT? We have a couple of related issues on our side now: and
( basically quick-fixed the issue by removing attachment content when not explicitly requested and replacing it with a link - which may have fixed your issue as well)
We don't have a pull request planned, but you should feel free to create a PR yourself using the code from Alina's implementation.