OpenNTF/SocialSDK

Issue adding HTML to a comunity via API (Social Business Toolkit SDK) in Connections 5.5

csandres opened this issue · 0 comments

After migrate from Connections 4.5 to Connections 5.5, we have an issue adding HTML (link to a document) to a comunity via API (Social Business Toolkit SDK).
We have a workflow that when you create a document in Websphere Portal it is published (via SBT) in a community in Connections:

… statusMsg = " - <a href=\""+pathContent+ "\">" + title+ "</a>"; postPayload.put("content", statusMsg); ActivityStreamService actSvc = new ActivityStreamService(ep); String entryId = actSvc.postMicroblogEntry("urn:lsid:lconn.ibm.com:communities.community:" + idCommunity,"@all","",postPayload); …

In Connections 4.5, the link is escaped in order to show correctly:

statusMsg = " - &#60;a href=\"&#104;&#116;&#116;&#112;&#115;&#58;&#47;&#47;" + path + "\"&#62;" + title+ "&#60;&#47;a&#62;";

imagen

But in Connection 5.5, it shows the characters codes:

imagen

How should content (a link) be created in Connections 5.5 using the SBT API as we do in Connections 4.5?
Thanks in advance.
Regard.