diff --git a/config/routes b/config/routes index 89b69d2..1a76223 100644 --- a/config/routes +++ b/config/routes @@ -32,7 +32,7 @@ -- Federation -- ---------------------------------------------------------------------------- -/publish PublishR GET +/publish PublishR GET POST /inbox InboxR GET /akey1 ActorKey1R GET /akey2 ActorKey2R GET diff --git a/src/Vervis/Foundation.hs b/src/Vervis/Foundation.hs index 4a0d510..9c7f864 100644 --- a/src/Vervis/Foundation.hs +++ b/src/Vervis/Foundation.hs @@ -298,6 +298,8 @@ instance Yesod App where | a == resendVerifyR -> personFromResendForm (AuthR (PluginR "account" ["verify", u, _]), False) -> personUnver u + (PublishR , True) -> personAny + (SharerInboxR shr , False) -> person shr (NotificationsR shr , _ ) -> person shr (SharerOutboxR shr , True) -> person shr diff --git a/src/Vervis/Handler/Client.hs b/src/Vervis/Handler/Client.hs index 5f1c7cf..c3994a6 100644 --- a/src/Vervis/Handler/Client.hs +++ b/src/Vervis/Handler/Client.hs @@ -16,6 +16,7 @@ module Vervis.Handler.Client ( getPublishR , postSharerOutboxR + , postPublishR , postSharerFollowR , postProjectFollowR @@ -184,25 +185,24 @@ followForm = renderDivs $ (,) deft = ObjURI (Authority "forge.angeley.es" Nothing) $ LocalURI "/s/fr33" activityWidget - :: ShrIdent - -> Widget -> Enctype + :: Widget -> Enctype -> Widget -> Enctype -> Widget -> Enctype -> Widget -activityWidget shr widget1 enctype1 widget2 enctype2 widget3 enctype3 = +activityWidget widget1 enctype1 widget2 enctype2 widget3 enctype3 = [whamlet|