aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet
diff options
context:
space:
mode:
Diffstat (limited to 'perllib/FixMyStreet')
-rw-r--r--perllib/FixMyStreet/App/Controller/Moderate.pm10
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,