Is there a way to pass emojis into and out of any of the blog, blog comment, forum thread, or forum thread reply endpoints?
Even when I add an emoji though the UI, it does not appear to be sent out of the REST API in the body of the text of whatever content it was created in.
Here is a sample blog post I added an emoji to using the Insert > emoticon
But when I pull back the blog post, the body text looks like the following:
"body": "<p>some body text here</p>\n<p></p>\n<p>updated here</p>\n<p></p>\n<p> grinning face before</p><div style=\"clear:both;\"></div>",
When creating content via REST, you can insert the unicode character sequences for specific emoticons and they will be interpreted before the content is committed into the Telligent Community token format of [emoticon:GUID]. You can also insert emoticons directly using the Telligent Community token format if you know the GUID identifier of the emoticon to be inserted.
When retrieving content, it appears the default content rendering mode removes the emoticons as you found. You can override the default rendering mode by adding the PostTarget querystring parameter to your REST request and specifying:
Ben Tiedt I looked at the documentation for fetching a forum thread, and for PostTarget the description is "Do not document this property".
Is there a reason for this? More specifically, is there a reason why we shouldn't make use of it in tools that we expect to be around for years?
There are many use cases for specifying a rendering/post target in REST (which is why these parameters exist). We discussed the issue of "do not document this property" internally and agree that these parameters should be fully documented. They are safe to use and I've logged a bug to address the documentation:
'#107051 PostTarget parameters on REST APIs should be fully documented' has been completed.