Allow \n char in Feed Format string
parent
c6386e1787
commit
0bcad080ac
|
@ -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 = "";
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue