diff --git a/twister_formatpost.js b/twister_formatpost.js index f03fb3e..e51d7d2 100644 --- a/twister_formatpost.js +++ b/twister_formatpost.js @@ -116,7 +116,8 @@ function dmDataToSnippetItem(dmData, remoteUser) { dmItem.find("a.dm-chat-link").attr("href", $.MAL.dmchatUrl(remoteUser)); getAvatar( remoteUser, dmItem.find(".post-photo").find("img") ); getFullname( remoteUser, dmItem.find("a.post-info-name") ); - dmItem.find(".post-text").text(escapeHtmlEntities(dmData.text)); + var mentions = []; + htmlFormatMsg(dmData.text, dmItem.find(".post-text"), mentions); dmItem.find(".post-info-time").text(timeGmtToText(dmData.time)); dmItem.find(".post-info-time").attr("title",timeSincePost(dmData.time));