Commit c73fca3f authored by Kiyoshi Aman's avatar Kiyoshi Aman
Browse files

Chessa::Bug::Adelie: more thinkos

parent 96877e16
......@@ -104,7 +104,7 @@ sub handle {
my $base = 'https://git.adelielinux.org/api/v4/';
my $func;
if (!exists($self->{projects}{$project}) && ($type != 'snippets')) {
if (!exists($self->{projects}{$project}) && ($type ne 'snippets')) {
return;
}
if (length($project)) {
......@@ -232,10 +232,10 @@ sub snippet {
my %d = (
author => $json->{author}{name} . ' (@' . $json->{author}{username} . ')',
title => $json->{title},
id => $json->{iid},
id => $num,
url => $json->{web_url},
);
$project = 'Snippet' unless defined($project);
$project = 'Snippet' unless length($project);
my $str = $self->{msg}($project, $d{id}) . " $d{title} (" .
$self->{msg}('Author', $d{author}) . ") - $d{url}";
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment