]> gitweb @ CieloNegro.org - Rakka.git/commitdiff
bugfix
authorpho <pho@cielonegro.org>
Tue, 29 Jan 2008 09:14:15 +0000 (18:14 +0900)
committerpho <pho@cielonegro.org>
Tue, 29 Jan 2008 09:14:15 +0000 (18:14 +0900)
darcs-hash:20080129091415-62b54-f9e5cd1cdff96fe6e46e8db91000c2acbc9733d9.gz

Rakka/Resource/TrackBack.hs

index a9b364a56891349d4dc5daa943aaffd5ee64b909..145e307c555631af4da708504da1070285da14ea 100644 (file)
@@ -13,6 +13,7 @@ import           Data.Time
 import           Network.Browser
 import           Network.HTTP
 import           Network.HTTP.Lucu
+import           Network.HTTP.Lucu.Response
 import           Network.HTTP.Lucu.Utils
 import           Network.URI
 import           Rakka.Environment
@@ -74,7 +75,10 @@ handlePost env name
           | otherwise
               = do tbListM <- return . fromMaybe [] =<< getAttachment (envStorage env) (pageName page) "trackbacks" Nothing
                    st      <- putAttachment (envStorage env) Nothing Nothing (pageName page) "trackbacks" (tbParam : tbListM)
-                   setStatus st
+                   if isSuccessful st then
+                       outputResponse NoError
+                     else
+                       setStatus st
 
 
 validateTrackBack :: [(String, String)] -> Resource (Maybe TrackBack)