diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-08-10 17:31:57 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-08-10 17:54:12 +0100 |
commit | e789a07dcb1936e3b0d7a23583aaf3d05e3d80f5 (patch) | |
tree | fd433cd0a2704eff202f464b95a0f1e190c99154 /perllib/FixMyStreet/App/Controller/Moderate.pm | |
parent | 4faf6b08b07bf450d87db10df786f2b7ff8a802c (diff) |
Direct report moderated emails correctly.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Moderate.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Moderate.pm | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Moderate.pm b/perllib/FixMyStreet/App/Controller/Moderate.pm index 2d23417b9..dadec5c53 100644 --- a/perllib/FixMyStreet/App/Controller/Moderate.pm +++ b/perllib/FixMyStreet/App/Controller/Moderate.pm @@ -28,8 +28,7 @@ data to change. The original data of the report is stored in moderation_original_data, so that it can be reverted/consulted if required. All moderation events are -stored in moderation_log. (NB: In future, this could be combined with -admin_log). +stored in admin_log. =head1 SEE ALSO @@ -102,18 +101,15 @@ sub report_moderate_audit : Private { reason => (sprintf '%s (%s)', $reason, $types_csv), }); - my $cobrand = FixMyStreet::Cobrand->get_class_for_moniker($problem->cobrand)->new(); - my $token = $c->model("DB::Token")->create({ scope => 'moderation', data => { id => $problem->id } }); $c->send_email( 'problem-moderated.txt', { - - to => [ [ $user->email, $user->name ] ], + to => [ [ $problem->user->email, $problem->name ] ], types => $types_csv, - user => $user, + user => $problem->user, problem => $problem, report_uri => $c->stash->{report_uri}, report_complain_uri => $c->stash->{cobrand_base} . '/contact?m=' . $token->token, |