diff options
author | Matthew Somerville <matthew@mysociety.org> | 2012-03-08 14:05:01 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2012-03-08 14:05:01 +0000 |
commit | 1a5baa677635b0fb981bd4cf83e1843f8d5ef8ab (patch) | |
tree | f86ee8c99fd6269b925640dc2bb3ebb44ee279ce /perllib/FixMyStreet/App/Controller/Rss.pm | |
parent | 410d1f1edc737d1d60e83f90053fe028eff3de30 (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 'perllib/FixMyStreet/App/Controller/Rss.pm')
-rwxr-xr-x | perllib/FixMyStreet/App/Controller/Rss.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Rss.pm b/perllib/FixMyStreet/App/Controller/Rss.pm index 822780b81..4d0b6cb93 100755 --- a/perllib/FixMyStreet/App/Controller/Rss.pm +++ b/perllib/FixMyStreet/App/Controller/Rss.pm @@ -267,8 +267,8 @@ sub add_row : Private { $item{category} = $row->{category} if $row->{category}; if ($c->cobrand->allow_photo_display && $row->{photo}) { - my $key = $alert_type->item_table eq 'comment' ? 'c' : 'id'; - $item{description} .= ent("\n<br><img src=\"". $c->cobrand->base_url . "/photo?$key=$row->{id}\">"); + my $key = $alert_type->item_table eq 'comment' ? 'c/' : ''; + $item{description} .= ent("\n<br><img src=\"". $c->cobrand->base_url . "/photo/$key$row->{id}.jpeg\">"); } if ( $row->{used_map} ) { |