fix compat with old yesod
This commit is contained in:
parent
215fe3c028
commit
a7e1dadf50
1 changed files with 2 additions and 2 deletions
|
@ -99,8 +99,8 @@ getRepoListBroadcaster = syncRemotesNotifier <$> getDaemonStatus
|
|||
getGlobalRedirBroadcaster :: Assistant NotificationBroadcaster
|
||||
getGlobalRedirBroadcaster = globalRedirNotifier <$> getDaemonStatus
|
||||
|
||||
getGlobalRedirR :: NotificationId -> Handler Text
|
||||
getGlobalRedirR :: NotificationId -> Handler RepPlain
|
||||
getGlobalRedirR nid = do
|
||||
waitNotifier getGlobalRedirBroadcaster nid
|
||||
maybe (getGlobalRedirR nid) (return . T.pack)
|
||||
maybe (getGlobalRedirR nid) (return . RepPlain . toContent . T.pack)
|
||||
=<< globalRedirUrl <$> liftAssistant getDaemonStatus
|
||||
|
|
Loading…
Reference in a new issue