aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2012-03-08 14:05:01 +0000
committerMatthew Somerville <matthew@mysociety.org>2012-03-08 14:05:01 +0000
commit1a5baa677635b0fb981bd4cf83e1843f8d5ef8ab (patch)
treef86ee8c99fd6269b925640dc2bb3ebb44ee279ce /bin
parent410d1f1edc737d1d60e83f90053fe028eff3de30 (diff)
Store full size photos that are uploaded on filesystem, put hash in database. Fixes #9, basics for #209 (needs light box adding).
Diffstat (limited to 'bin')
-rwxr-xr-xbin/send-reports2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/send-reports b/bin/send-reports
index d92c10467..e012cc1f0 100755
--- a/bin/send-reports
+++ b/bin/send-reports
@@ -69,7 +69,7 @@ while (my $row = $unsent->next) {
$h{phone_line} = $h{phone} ? _('Phone:') . " $h{phone}\n\n" : '';
if ($row->photo) {
$h{has_photo} = _("This web page also contains a photo of the problem, provided by the user.") . "\n\n";
- $h{image_url} = $email_base_url . '/photo?id=' . $row->id;
+ $h{image_url} = $email_base_url . '/photo/' . $row->id . '.full.jpeg';
} else {
$h{has_photo} = '';
$h{image_url} = '';