Skip to content

Commit

Permalink
Merge branch 'surrey-only-send-private-photos' into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
davea committed Sep 17, 2024
2 parents 4fd0103 + 0223eb8 commit b4a36c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions perllib/Open311/Endpoint/Integration/Boomi.pm
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,10 @@ sub _add_attachments {
my $ua = LWP::UserAgent->new(agent => "FixMyStreet/open311-adapter");

for my $photo (@{ $args->{media_url} }) {
my $filename = (URI->new($photo)->path_segments)[-1];
push @attachments, {
url => $photo,
fileName => $filename,
};
}

Expand Down
2 changes: 2 additions & 0 deletions t/open311/endpoint/surrey_boomi.t
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ $lwp->mock(request => sub {
"attachments" => [
{
"url" => "http://localhost/photo/one.jpeg",
"fileName" => "one.jpeg",
},
]
};
Expand Down Expand Up @@ -131,6 +132,7 @@ $lwp->mock(request => sub {
"attachments" => [
{
"url" => "http://localhost/photo/one.jpeg",
"fileName" => "one.jpeg",
},
]
};
Expand Down

0 comments on commit b4a36c3

Please sign in to comment.