Skip to content

Commit

Permalink
Updated *submit_link* to correctly return url and id.
Browse files Browse the repository at this point in the history
  • Loading branch information
quackzack committed Dec 9, 2012
1 parent 61376d6 commit f3aad48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Reddit.pm
Expand Up @@ -234,7 +234,7 @@ sub submit_link {
my $decoded = from_json $json_content;

#returns link to new post if successful
my $link = $decoded->{jquery}[18][3][0]; # get id of your post from response
my $link = $decoded->{jquery}[16][3][0]; # get id of your post from response
my $id = $self->_parse_link($link); # format id correctly

return $id, $link;
Expand Down

0 comments on commit f3aad48

Please sign in to comment.