diff options
author | francis <francis> | 2008-09-24 17:21:00 +0000 |
---|---|---|
committer | francis <francis> | 2008-09-24 17:21:00 +0000 |
commit | 4b292a7f02e423800ff77bb145ed139f2a665c20 (patch) | |
tree | 022cedd6c89709ca7090dee6437449189f2f30b9 | |
parent | 9980267b75cb36401d7ebc68f9f27776bd765183 (diff) |
Remove WDTK signup links.
-rw-r--r-- | app/models/incoming_message.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/models/incoming_message.rb b/app/models/incoming_message.rb index 6a999b61d..a0f26aa40 100644 --- a/app/models/incoming_message.rb +++ b/app/models/incoming_message.rb @@ -19,7 +19,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: incoming_message.rb,v 1.150 2008-09-23 21:00:14 francis Exp $ +# $Id: incoming_message.rb,v 1.151 2008-09-24 17:21:00 francis Exp $ # TODO # Move some of the (e.g. quoting) functions here into rblib, as they feel @@ -328,6 +328,9 @@ class IncomingMessage < ActiveRecord::Base # http://www.whatdotheyknow.com/request/how_do_the_pct_deal_with_retirin_113 text.gsub!(/(Complaints and Corporate Affairs Officer)\s+Westminster Primary Care Trust.+/ms, "\\1") + # Remove WhatDoTheyKnow signup links + text.gsub!(/http:\/\/www.whatdotheyknow.com\/c\/[^\s]+/, "[WDTK login link]") + return text end |