fix compat with old yesod

This commit is contained in:
Joey Hess 2013-11-25 15:14:34 -04:00
parent 215fe3c028
commit a7e1dadf50

View file

@ -99,8 +99,8 @@ getRepoListBroadcaster = syncRemotesNotifier <$> getDaemonStatus
getGlobalRedirBroadcaster :: Assistant NotificationBroadcaster getGlobalRedirBroadcaster :: Assistant NotificationBroadcaster
getGlobalRedirBroadcaster = globalRedirNotifier <$> getDaemonStatus getGlobalRedirBroadcaster = globalRedirNotifier <$> getDaemonStatus
getGlobalRedirR :: NotificationId -> Handler Text getGlobalRedirR :: NotificationId -> Handler RepPlain
getGlobalRedirR nid = do getGlobalRedirR nid = do
waitNotifier getGlobalRedirBroadcaster nid waitNotifier getGlobalRedirBroadcaster nid
maybe (getGlobalRedirR nid) (return . T.pack) maybe (getGlobalRedirR nid) (return . RepPlain . toContent . T.pack)
=<< globalRedirUrl <$> liftAssistant getDaemonStatus =<< globalRedirUrl <$> liftAssistant getDaemonStatus