Skip to content

Commit

Permalink
decode_json not from_json...
Browse files Browse the repository at this point in the history
  • Loading branch information
leedo committed Sep 29, 2017
1 parent 3c12bf2 commit 082dae9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Noembed/oEmbedProvider.pm
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ sub options { qw/maxwidth maxheight/ };

sub serialize {
my ($self, $body, $req) = @_;
my $data = from_json $body;
my $data = decode_json $body;

if (!$data->{html}) {
$data->{html} = $self->render($data, $req->url);
Expand Down

0 comments on commit 082dae9

Please sign in to comment.