diff options
| author | Chris Mytton <self@hecticjeff.net> | 2013-09-13 12:12:14 +0100 | 
|---|---|---|
| committer | Chris Mytton <self@hecticjeff.net> | 2013-09-13 12:12:14 +0100 | 
| commit | b44f9edab53f59fb442e5ee4db28cb25408c652c (patch) | |
| tree | e7cd62bd148a5332e1ec625dda6c3bc6b09ceb62 /perllib/FixMyStreet/DB/ResultSet/Problem.pm | |
| parent | 2099ac31a4410f2cf8e1c7d31dc35cdd9ac1e070 (diff) | |
| parent | 94ac7786132a538a5742ba325eb7fe9eff89cfc9 (diff) | |
Merge branch 'master' into oxfordshire-usability-recommendations
Diffstat (limited to 'perllib/FixMyStreet/DB/ResultSet/Problem.pm')
| -rw-r--r-- | perllib/FixMyStreet/DB/ResultSet/Problem.pm | 9 | 
1 files changed, 7 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/DB/ResultSet/Problem.pm b/perllib/FixMyStreet/DB/ResultSet/Problem.pm index 07848d782..b00daab40 100644 --- a/perllib/FixMyStreet/DB/ResultSet/Problem.pm +++ b/perllib/FixMyStreet/DB/ResultSet/Problem.pm @@ -259,10 +259,14 @@ sub send_reports {          }          $cobrand->set_lang_and_domain($row->lang, 1); -        if ( $row->is_from_abuser ) { +        if ( $row->is_from_abuser) {              $row->update( { state => 'hidden' } );              debug_print("hiding because its sender is flagged as an abuser", $row->id) if $debug_mode;              next; +        } elsif ( $row->title =~ /app store test/i ) { +            $row->update( { state => 'hidden' } ); +            debug_print("hiding because it is an app store test message", $row->id) if $debug_mode; +            next;          }          # Template variables for the email @@ -464,7 +468,8 @@ sub send_reports {              send_fail_count => { '>', 0 }          } );          while (my $row = $unsent->next) { -            $sending_errors .= "* http://www.fixmystreet.com/report/" . $row->id . ", failed " +            my $base_url = mySociety::Config::get('BASE_URL'); +            $sending_errors .= "* " . $base_url . "/report/" . $row->id . ", failed "                  . $row->send_fail_count . " times, last at " . $row->send_fail_timestamp                  . ", reason " . $row->send_fail_reason . "\n";          }  | 
