aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/My.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/My.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/My.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/My.pm b/perllib/FixMyStreet/App/Controller/My.pm
index 8cb807e09..74f7a6d52 100644
--- a/perllib/FixMyStreet/App/Controller/My.pm
+++ b/perllib/FixMyStreet/App/Controller/My.pm
@@ -25,6 +25,9 @@ sub my : Path : Args(0) {
$c->detach( '/auth/redirect' ) unless $c->user;
+ # Even though front end doesn't yet have it, have it on this page, it's better!
+ FixMyStreet::Map::set_map_class( 'FMS' );
+
my $pins = [];
my $problems = {};
foreach my $problem ( $c->user->problems ) {
@@ -39,6 +42,10 @@ sub my : Path : Args(0) {
}
$c->stash->{problems} = $problems;
+ my @updates = $c->user->comments->search( {
+ state => 'confirmed',
+ } )->all;
+ $c->stash->{updates} = \@updates;
FixMyStreet::Map::display_map(
$c,