Make frg:isShared key property optional, it was accidentally required

This commit is contained in:
fr33domlover 2019-03-15 16:33:10 +00:00
parent 0e0afa78f9
commit 9e881554ea

View file

@ -209,7 +209,7 @@ instance ActivityPub PublicKey where
when (t /= ("Key" :: Text)) $
fail "PublicKey @type isn't Key"
(host, id_) <- f2l <$> (o .: "@id" <|> o .: "id")
shared <- o .: (frg <> "isShared") .!= False
shared <- o .:? (frg <> "isShared") .!= False
fmap (host,) $
PublicKey id_
<$> o .:? "expires"