Updating branch refs/heads/master
to 6a3b71d02a80b536635fc89701af734e507e9334 (commit)
from 63ab483d56d7f083229c1d3179756bfbf71ce55b (commit)
commit 6a3b71d02a80b536635fc89701af734e507e9334
Author: Jannis Pohlmann <[email protected]>
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
_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits