Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lib/Synergy/Reactor/Linear.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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
Expand Down