diff --git a/lib/Synergy/Reactor/Linear.pm b/lib/Synergy/Reactor/Linear.pm index a9711e62..459ad150 100644 --- a/lib/Synergy/Reactor/Linear.pm +++ b/lib/Synergy/Reactor/Linear.pm @@ -19,6 +19,7 @@ use Linear::Client; use Synergy::CommandPost; use Synergy::Logger '$Logger'; use Synergy::Util qw(reformat_help); +use Text::SlackEmoji; use utf8; @@ -444,6 +445,10 @@ sub _handle_creation_event ($self, $event, $arg = {}) { # Slack now "helpfully" corrects '>>' in DM to '> >'. $text =~ s/\A> >/>>/; + # convert slack emoji shortcodes to unicode + my $emoji = Text::SlackEmoji->emoji_map; + $text =~ s!:([-+a-z0-9_]+):!$emoji->{$1} // ":$1:"!ge; + my $plan_f = $linear->plan_from_input($ersatz_text // $text); # XXX: I do not like our current error-returning scheme. -- rjbs, 2021-12-10