diff options
author | Matthew Somerville <matthew@mysociety.org> | 2016-02-23 16:37:14 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2016-02-23 18:11:18 +0000 |
commit | 0d0b35dadf3ebf4781e00ae8d83b4061a99cfcc6 (patch) | |
tree | 722afef3118275cc9d952d45e89fbd8e75ba746a /perllib/FixMyStreet/DB/Result/Comment.pm | |
parent | 28144f5153a0a7f7bad9466c883bd5c147568028 (diff) |
Only load images from disk when needed.
Fixes #1337.
Diffstat (limited to 'perllib/FixMyStreet/DB/Result/Comment.pm')
-rw-r--r-- | perllib/FixMyStreet/DB/Result/Comment.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/DB/Result/Comment.pm b/perllib/FixMyStreet/DB/Result/Comment.pm index 3ae56591f..5734ff8d5 100644 --- a/perllib/FixMyStreet/DB/Result/Comment.pm +++ b/perllib/FixMyStreet/DB/Result/Comment.pm @@ -183,7 +183,7 @@ sub photos { url_full => "/photo/c/$id.$i.full.$format?$cachebust", idx => $i++, } - } map { $_->[0] } $photoset->all_images; + } $photoset->all_ids; return \@photos; } |