Skip to content
Snippets Groups Projects
Commit c73fca3f authored by Síle Ekaterin Liszka's avatar Síle Ekaterin Liszka
Browse files

Chessa::Bug::Adelie: more thinkos

parent 96877e16
No related branches found
No related tags found
No related merge requests found
......@@ -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}";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment