Allow \n char in Feed Format string

develop
mj-saunders 2018-03-25 07:48:02 +00:00
parent c6386e1787
commit 0bcad080ac
1 changed files with 4 additions and 0 deletions

View File

@ -95,6 +95,10 @@ FEED: foreach my $feed (@feeds){
$data{status} = $status;
$ENV{status} = encode_json({%data});
# encode_json breaks '\n' chars - turns them into '\\n'
# Fix them
$ENV{status} =~ s/\\\\n/\\n/g;
open(DATA, "./post_status.bash '$user->{data}->{access_token}' '$user->{data}->{instance}' |");
my $reply = "";
{