Skip to content

Commit

Permalink
fixed & sub call to OO -> call
Browse files Browse the repository at this point in the history
  • Loading branch information
three18ti committed Jul 15, 2012
1 parent 252550a commit f997f4f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Reddit.pm
Expand Up @@ -163,8 +163,8 @@ sub _parse_link {
}

sub _parse_comment_id {
# ID's require a t3_ or t1_ prefix depending on whether it is a
# post or comment id respectively.
# ID's require a t3_ or t1_ prefix depending on whether it is a
# post or comment id respectively.
my $id = shift;
if (length($id) == 5){ $id = "t3_" . $id}
elsif (length($id) == 7){ $id = "t1_" . $id}
Expand Down Expand Up @@ -229,7 +229,7 @@ sub submit_story {
sub comment {
my $self = shift;
my ($thing_id, $comment) = @_;
$thing_id = &_parse_comment_id($thing_id);
$thing_id = $self->_parse_comment_id($thing_id);
my $response = $self->post($self->comment_api,
{
thing_id => $thing_id,
Expand Down

0 comments on commit f997f4f

Please sign in to comment.