6969import com .meisolsson .githubsdk .model .payload .PushPayload ;
7070import com .meisolsson .githubsdk .model .payload .ReleasePayload ;
7171import com .meisolsson .githubsdk .model .payload .TeamAddPayload ;
72- import com .vdurmont .emoji .EmojiParser ;
7372
7473import java .util .List ;
7574
@@ -138,7 +137,7 @@ private CharSequence formatDescription(GitHubEvent event) {
138137 CommitCommentPayload payload = (CommitCommentPayload ) event .payload ();
139138 GitComment comment = payload .comment ();
140139 if (comment != null ) {
141- return EmojiParser . parseToUnicode (comment .body ());
140+ return StringUtils . replaceEmojiAliases (comment .body ());
142141 }
143142 break ;
144143 }
@@ -186,7 +185,7 @@ private CharSequence formatDescription(GitHubEvent event) {
186185 case IssueCommentEvent : {
187186 IssueCommentPayload payload = (IssueCommentPayload ) event .payload ();
188187 if (payload != null && payload .comment () != null ) {
189- return EmojiParser . parseToUnicode (payload .comment ().body ());
188+ return StringUtils . replaceEmojiAliases (payload .comment ().body ());
190189 }
191190 break ;
192191 }
@@ -216,7 +215,7 @@ private CharSequence formatDescription(GitHubEvent event) {
216215 Review review = payload .review ();
217216 String body = review .body ();
218217 if (body != null ) {
219- return EmojiParser . parseToUnicode (review .body ());
218+ return StringUtils . replaceEmojiAliases (review .body ());
220219 }
221220 break ;
222221 }
@@ -225,7 +224,7 @@ private CharSequence formatDescription(GitHubEvent event) {
225224 (PullRequestReviewCommentPayload ) event .payload ();
226225 ReviewComment comment = payload .comment ();
227226 if (comment != null ) {
228- return EmojiParser . parseToUnicode (comment .body ());
227+ return StringUtils . replaceEmojiAliases (comment .body ());
229228 }
230229 break ;
231230 }
@@ -258,7 +257,8 @@ private CharSequence formatDescription(GitHubEvent event) {
258257 ssb .length () - sha .length (), ssb .length (), 0 );
259258
260259 ssb .append (" " );
261- ssb .append (StringUtils .getFirstLine (EmojiParser .parseToUnicode (commit .message ())));
260+ ssb .append (StringUtils .getFirstLine (
261+ StringUtils .replaceEmojiAliases (commit .message ())));
262262 ssb .setSpan (new EllipsizeLineSpan (i == (count - 1 ) ? 0 : bottomMargin ),
263263 lastLength , ssb .length (), 0 );
264264 }
0 commit comments