diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-01-18 14:06:24 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-01-18 14:06:24 +0000 |
commit | f9b2ff83e731364f9780d42bf59bb1e4c71018f0 (patch) | |
tree | 31509711f28b74945435e6d0a57a1b8c44ddb7b8 /perllib/FixMyStreet/DB/Result/Comment.pm | |
parent | aa1ada8de28f8af2c4ef1ea5a8f4e633d3995741 (diff) | |
parent | 4394236a96f797d31033f6760607548266b0d354 (diff) |
Merge branch 'issues/commercial/988-c6-email-address-link'
Diffstat (limited to 'perllib/FixMyStreet/DB/Result/Comment.pm')
-rw-r--r-- | perllib/FixMyStreet/DB/Result/Comment.pm | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/perllib/FixMyStreet/DB/Result/Comment.pm b/perllib/FixMyStreet/DB/Result/Comment.pm index 60fd31510..4e869ab24 100644 --- a/perllib/FixMyStreet/DB/Result/Comment.pm +++ b/perllib/FixMyStreet/DB/Result/Comment.pm @@ -156,26 +156,6 @@ sub url { return "/report/" . $self->problem_id . '#update_' . $self->id; } -sub photos { - my $self = shift; - my $photoset = $self->get_photoset; - my $i = 0; - my $id = $self->id; - my @photos = map { - my $cachebust = substr($_, 0, 8); - my ($hash, $format) = split /\./, $_; - { - id => $hash, - url_temp => "/photo/temp.$hash.$format", - url_temp_full => "/photo/fulltemp.$hash.$format", - url => "/photo/c/$id.$i.$format?$cachebust", - url_full => "/photo/c/$id.$i.full.$format?$cachebust", - idx => $i++, - } - } $photoset->all_ids; - return \@photos; -} - =head2 latest_moderation_log_entry Return most recent ModerationLog object |