[Bps-public-commit] App-Changeloggr branch, master, updated. 65bb38e0b4dec57d209ed29733fba630d8ac3f24

sartak at bestpractical.com sartak at bestpractical.com
Thu Dec 17 10:53:32 EST 2009


The branch, master has been updated
       via  65bb38e0b4dec57d209ed29733fba630d8ac3f24 (commit)
      from  1d05aace8b584788d4f0b8092ee9914f7b8a3456 (commit)

Summary of changes:
 lib/App/Changeloggr/View.pm |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit 65bb38e0b4dec57d209ed29733fba630d8ac3f24
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Thu Dec 17 10:53:23 2009 -0500

    Make feedback a lazy region to combat spam

diff --git a/lib/App/Changeloggr/View.pm b/lib/App/Changeloggr/View.pm
index e52ee69..dd639c1 100644
--- a/lib/App/Changeloggr/View.pm
+++ b/lib/App/Changeloggr/View.pm
@@ -71,7 +71,13 @@ template '/changelog' => page {
         },
     );
 
-    show '/feedback/request_feedback';
+    # This is a lazy region so that we require javascript. This will hopefully
+    # help our spam problem, since spammers tend not to have javascript.
+    render_region(
+        name => 'feedback',
+        path => '/feedback/request_feedback',
+        lazy => 1,
+    );
 };
 
 template '/changelog/tags' => page {

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list