Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Síle Ekaterin Liszka
Chessa
Commits
c73fca3f
Commit
c73fca3f
authored
May 09, 2022
by
Kiyoshi Aman
Browse files
Chessa::Bug::Adelie: more thinkos
parent
96877e16
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/Chessa/Bug/Adelie.pm
View file @
c73fca3f
...
...
@@ -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}
";
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment