});
# Insert a comment about the new attachment into the database.
- $bug->add_comment($revision->summary,
- {type => CMT_ATTACHMENT_CREATED, extra_data => $attachment->id});
-
+ $bug->add_comment(
+ $revision->summary,
+ {
+ type => CMT_ATTACHMENT_CREATED,
+ extra_data => $attachment->id,
+ is_markdown => (Bugzilla->params->{use_markdown} ? 1 : 0)
+ }
+ );
delete $bug->{attachments};
return $attachment;
push(@bug_users, $bug->qa_contact) if $bug->qa_contact;
push(@bug_users, @{$bug->cc_users}) if @{$bug->cc_users};
- my $phab_users
- = Bugzilla::Extension::PhabBugz::User->match({
- ids => [map { $_->id } @bug_users]
- });
+ my $phab_users = Bugzilla::Extension::PhabBugz::User->match(
+ {ids => [map { $_->id } @bug_users]});
return [map { $_->phid } @{$phab_users}];
}
my @revisions;
foreach my $revision_id (@revision_ids) {
- my $revision
- = Bugzilla::Extension::PhabBugz::Revision->new_from_query({
- ids => [$revision_id]
- });
+ my $revision = Bugzilla::Extension::PhabBugz::Revision->new_from_query(
+ {ids => [$revision_id]});
push @revisions, $revision if $revision;
}