diff options
author | Matthew Somerville <matthew@mysociety.org> | 2011-07-16 08:31:08 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2011-07-16 08:34:33 +0100 |
commit | 327ac51aec0f0625fcb79179c0e1c5eec928223d (patch) | |
tree | 18b8e3d65272c87912f5409e4b4ea4f1397ec84b /perllib/FixMyStreet/App/Controller/Rss.pm | |
parent | 3659557ee50eb9eb00f14825970994e2a8072b89 (diff) |
Don't use update name if marked as anonymous.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Rss.pm')
-rwxr-xr-x | perllib/FixMyStreet/App/Controller/Rss.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Rss.pm b/perllib/FixMyStreet/App/Controller/Rss.pm index db4955f06..78793d9c1 100755 --- a/perllib/FixMyStreet/App/Controller/Rss.pm +++ b/perllib/FixMyStreet/App/Controller/Rss.pm @@ -217,7 +217,7 @@ sub add_row : Private { my ( $self, $c, $row ) = @_; my $alert_type = $c->stash->{alert_type}; - $row->{name} ||= 'anonymous'; + $row->{name} = 'anonymous' if $row->{anonymous} || !$row->{name}; my $pubDate; if ($row->{confirmed}) { |