aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/DB/Result/Comment.pm
diff options
context:
space:
mode:
authorM Somerville <matthew-github@dracos.co.uk>2020-10-08 12:00:17 +0100
committerM Somerville <matthew-github@dracos.co.uk>2020-10-11 22:31:15 +0100
commita91ee9b19d21754f91bed26118b7cd9a2b2cc6d4 (patch)
treed8a4a5151c7d64029ae849467b0d157d3762e973 /perllib/FixMyStreet/DB/Result/Comment.pm
parent3909c8655d118402c798653d188515d7dc406b03 (diff)
[Bexley] Different message for anonymous updates.
Diffstat (limited to 'perllib/FixMyStreet/DB/Result/Comment.pm')
-rw-r--r--perllib/FixMyStreet/DB/Result/Comment.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/DB/Result/Comment.pm b/perllib/FixMyStreet/DB/Result/Comment.pm
index 76e8d3185..82476ba10 100644
--- a/perllib/FixMyStreet/DB/Result/Comment.pm
+++ b/perllib/FixMyStreet/DB/Result/Comment.pm
@@ -272,7 +272,8 @@ sub meta_line {
my $anon = $self->anonymous || !$self->name;
if ($anon && (!$staff || $contributed_as eq 'anonymous_user' || $contributed_as eq 'another_user')) {
- $meta = sprintf( _( 'Posted anonymously at %s' ), Utils::prettify_dt( $self->confirmed ) )
+ $meta = $cobrand->call_hook(update_anonymous_message => $self);
+ $meta ||= sprintf( _( 'Posted anonymously at %s' ), Utils::prettify_dt( $self->confirmed ) )
} elsif ($staff) {
my $user_name = FixMyStreet::Template::html_filter($self->user->name);
my $body;