Added single quotes around hash key for status_message[provider_display_name]

This commit is contained in:
Brian O'Donnell
2015-04-20 09:58:02 -04:00
parent f7a636753e
commit 8da031f5dd
+1 -1
View File
@@ -376,7 +376,7 @@ sub post_message {
if( $get_stream ){
my $csrf = extract_token( $result );
my $post_url = "$base_url/status_messages";
my $message = { status_message => { text => format_content( $content ) }, aspect_ids => $aspect_ids, status_message[provider_display_name] => 'https://github.com/rev138/pod_feeder' };
my $message = { status_message => { text => format_content( $content ) }, aspect_ids => $aspect_ids, 'status_message[provider_display_name]' => 'https://github.com/rev138/pod_feeder' };
my $json = JSON->new->allow_nonref;
$json = $json->utf8(0) unless utf8::is_utf8( $message );