[Xfce4-commits] <moka:master> Redirect to the front page after posting an announcement.

Jannis Pohlmann noreply at xfce.org
Mon Jan 17 18:02:01 CET 2011


Updating branch refs/heads/master
         to 6a3b71d02a80b536635fc89701af734e507e9334 (commit)
       from 63ab483d56d7f083229c1d3179756bfbf71ce55b (commit)

commit 6a3b71d02a80b536635fc89701af734e507e9334
Author: Jannis Pohlmann <jannis at xfce.org>
Date:   Mon Jan 17 18:00:09 2011 +0100

    Redirect to the front page after posting an announcement.

 lib/controllers/announcements.rb |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/lib/controllers/announcements.rb b/lib/controllers/announcements.rb
index 032334a..b9faa10 100755
--- a/lib/controllers/announcements.rb
+++ b/lib/controllers/announcements.rb
@@ -10,6 +10,12 @@ module Moka
           view :announcements
         end
 
+        app.get '/announcements/identica' do
+          authentication_required
+
+          redirect '/announcements'
+        end
+
         app.post '/announcements/identica' do
           authentication_required
 
@@ -31,6 +37,8 @@ module Moka
             end
 
             env['identica'].post(status)
+
+            redirect '/'
           end
 
           view :announcements



More information about the Xfce4-commits mailing list