Skip to content

Commit

Permalink
issue: only limit issues if maxissue is set
Browse files Browse the repository at this point in the history
  • Loading branch information
hadfl committed Apr 22, 2024
1 parent 5d11630 commit abfe7a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Fenix/Model/Handler/Issue.pm
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ sub process_p($self, $chan, $from, $msg, $mentioned = 0) {
return Mojo::Promise->resolve([]) if !@issues;

# limit the maximum number of issues fenix handles for one request
@issues = splice @issues, 0, $self->config->{maxissue};
@issues = splice @issues, 0, $self->config->{maxissue}
if $self->config->{maxissue};

return $self->handler->{$hd}->process_p(\@issues, $opts);
}
Expand Down

0 comments on commit abfe7a3

Please sign in to comment.